views:

580

answers:

5

We are using SuperSlidShow Plugin to display gallery of images in our post. However when I write shortcode [gallery] in my post/page images appear correctly, but can anyone guide me if I want to fix this [gallery] shortcode in the theme itself like page.php/post.php so that images will appear on all pages. We have images for every page/post.

+1  A: 

I believe you want:

<?php echo do_shortcode('[gallery option1="value1"]'); ?>

from here.

cori
thanks tha helpled, even <?php do_shortcode('[gallery]'); ?> but the problem is, it does not add items in header... the header part (scripts and css entries) are empty.
Akash Kava
not sure what you mean, exactly. Do you mean that all of your wordpress header stuff is missing? If so, perhaps a little code from you template file mught be in order. So might knowing which version of WordPress you're running.Aside from that it looks to me like all the css applying to the out-of-the box galleries is in the standard files, so I'm unclear what you believe is missing.
cori
A: 

Thanks! This is exactly what I wanted! So much help!

KAZ
A: 

Does anyone know if this will work in WordPress 3?

WordPress Consultant
A: 

works in wp 3.0 beta

Stephen