• Resolved timwheatley

    (@timwheatley)


    Hi,

    Love this plugin. I’d really like to know how to get the related photos to only show when the visitor is viewing single.php. Currently it shows everywhere there is a WP loop I think?

    Thanks,

    Tim..

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter timwheatley

    (@timwheatley)

    I waited a week before bumping. ??

    Can anybody help?

    Thanks! ??

    Tim

    You can add (see nggfunctions.php)

    if ( is_single())

    before nggShowRelatedImages()

    Thread Starter timwheatley

    (@timwheatley)

    Wow, I didn’t know I could code WP functions inside plugin files… Never even thought of it, thanks!

    So how does related images work?

    I would like to include the tag in my single.php template, but what is given at https://nextgen.boelinger.com/related-images/ doesn’t make sense, let alone work.

    <p class="postmetaimages">;
       <php if (function_exists("the_related_images"))
          the_related_images([string $type],[int $numbers]);
    </p>

    I’m sure there is something that I am missing, but I don’t know what.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: NextGEN Gallery] Related images – making only show on single.php?’ is closed to new replies.