• Hello Friends, A newbie here seeking assistance. I am using the NextGen gallery. I’ve added a gallery and I know how to call this within the editor using the tag [nggallery id=x, however this will show the thumbs also on the home/index page where there will be multiple posts. I just need these thumbs to show up when you are in the single post page.

    I’ve struggled with this for a long time, and collected some random code(not a clue how this will work or if it will work) but here it is.

    <?php if ( is_single() ) { ?> gallery($galleryID)

    Not a clue where this will go nor what it will do but from my reading I gathered this may do something. Can someone much more knowledgeable please show me how I can ONLY show the gallery thumbs when in the SINGLE post page?

    the site is Sneakersummit.com

    p.s. I’ve seen this done in another site using this plugin, so it’s possible.

    Many Thanks in advance to the wonderful folks at www.remarpro.com

Viewing 3 replies - 1 through 3 (of 3 total)
  • I do this using the <–more–> Tag.
    Just below the describing text I put the More-Divider and the Gallery right after that.
    No extra coding needed.

    Would that work for you?

    Thread Starter blogsummit

    (@blogsummit)

    Thank you for the Wonderful suggestion, I had no idea it would have been this easy. Just an addon Could I actually write php code underneath the <–more–> tag, and if so would it be any different then normal php in template files.

    Basically could this go under the <–more–> tag
    <div class=”imgindx”><?php if(function_exists(‘wp_smart_image’)) wp_smart_image($size=’med’) ?></div>

    Thank you very much.

    Dear blogsummit, sorry it took me so long to answer again.

    Great that it worked for you.
    You can’t execute PHP in WordPress Posts, but of course there is a way around that.
    Try the Exec-PHP Plugin and all will be well ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show NextGen gallery only on single post page’ is closed to new replies.