WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
Tags below thumbnails (3 posts)

  1. lukelukeluke
    Member
    Posted 1 year ago #

    Hi, I have a feeling I'm being really stupid here but I want to display Nextgen Image tags below gallery thumbnails. I then want it so that when you click on a tag, it loads a page of all thumbnails that have that tag.

    I've managed to get the tags displaying below the thumbnails but I don't know how to link them to a page that displays other images with the same tag.

    Does that make sense? I hope someone can help, its driving me nuts!

    Thanks

    Luke

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. Toshi Yoshida
    Member
    Posted 1 year ago #

    Check out http://www.nextgen-gallery.com/tags/

    Basically you can use [ nggtags album=blue ] Note: without the spaces inside the brackets. If you can't embed the shortcode in your caption tag then maybe just try using a url of the form http://www.nextgen-gallery.com/tags/?gallerytag=blue instead.

    I couldn't get either of the above to work properly. They both build the gallery with the right thumbnail images in it but the thumbnails don't link to the correct places. My gallery setup is a little different than most so perhaps that why it fails for me - good luck.

  3. lukelukeluke
    Member
    Posted 1 year ago #

    Thanks for the reply Toshi.

    I got it to work in the end by setting up a page with [ tagcloud ] shortcode in it, then adding this to view>gallery.php thumbnail section

    <?php foreach ( $tags as $tag ) : ?>
       <a href="<?php bloginfo('url'); ?>/?page_id=106&gallerytag=<?php echo $tag->slug; ?>"> • <?php echo $tag->name; ?></a>
    <?php endforeach; ?>
    <?php
        $social_sharing_toolkit = new MR_Social_Sharing_Toolkit();
        echo $social_sharing_toolkit->create_bookmarks();
    ?>

    No idea why it only works with the tagcloud shortcode but it does!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic