views:

121

answers:

1

Hi,

I am using WAMP as localhost on my pc, and upload all data to the hosting (using IIS 6.0). I am using lightbox gallery in one post, and in the sidebar, to show recent photos from that gallery (on the sidebar). my code on the sidebar as follows:

echo do_shortcode('[gallery id="66" size="large" columns="4" num="12" pagenavi="0"]');

this works great on my WAMP, but causing stack overflow on the hosting... when I leave it on the sidebar just as

[gallery]

it works (but showing the photos from the current page... so it's not really working. Actually the only thing seems to cause this problem is id="66" which call the photos from post id 66...

Any suggestions will be welcome !

Thanks

A: 

Try doing your code like this, maybe it will work...

$gallery_shortcode = '[gallery id="66" size="large" columns="4" num="12" pagenavi="0"]';
print apply_filters( 'the_content', $gallery_shortcode );
Paul Sheldrake