StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 07-04-2009, 10:21 PM
CharlesClarkson's Avatar
CharlesClarkson CharlesClarkson is offline
Community Moderator
 
Join Date: Feb 2009
Location: Stephenville, TX, USA
Posts: 11,356
Default Re: Attachment.php / Image.php Page Help

Quote:
Originally Posted by ruibo
Code:
<?php echo do_shortcode('[gallery id="<?php the_ID($post->post_parent); ?>"]'); ?>
I don't think the PHP interpreter is smart enough to evaluate the inner call to the_ID().

This might work (assuming the_ID() is a function):
Code:
<?php echo do_shortcode('[gallery id="' . the_ID($post->post_parent); . '"]'); ?>

HTH,
__________________
Charles "Rubeus Hagrid" Clarkson
StudioPress on Facebook

I'm not really a smart person. I just play one on the Internet.

Please use the HTML or PHP tags for pasting code.
Please make your links click-able: this_is_annoying.com
http://this_is_not_annoying.com.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image "attachment" page back button zom General Discussion 2 10-29-2009 09:51 AM
what is this? (see image attachment) joehark General Discussion 3 02-24-2009 01:12 AM


All times are GMT -5. The time now is 03:36 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.