Forums

[Plugin: Nextgen-Gallery] Display image name under thumbs (5 posts)

  1. sieborg
    Member
    Posted 1 year ago #

    Hi,

    I am writing a new topic since I didn't find a solution to my problem. I have been trying for hours several methods that I found on forums and I am a bit desperate...

    I am running nextgen-gallery on the tentwenty template.
    What I would like to do, is to have the name of each picture displayed under the thumb image.
    I don't have a clue how to do this, and I don't want to change plugin as I think it is excellent :)

    Please help, it is driving me crazy...

    Did someone already succeed to do that and do you have a concrete example?

    Your help is much appreciated.

  2. Kihon
    Member
    Posted 1 year ago #

    BUMP! Please help

  3. WebDi
    Member
    Posted 1 year ago #

    Did you ever get an answer to this or figure out how to do it yourself? I would like to do the same thing.

  4. sieborg
    Member
    Posted 1 year ago #

    There is a method that works and I share it with you.

    First, you have to add the following code to wp-content/plugins/nextgen-gallery/view/gallery.php

    1.
          <?php $tags = wp_get_object_terms($image->pid,'ngg_tag') ?>
       2.
    
       3.
          <?php foreach ( $tags as $tag ) : ?>
       4.
            <?php echo $tag->name; ?>
       5.
          <?php endforeach; ?>

    This will have the following effect : If you go in "manage galleries" you will see that next to each thumb you can put the name and description of the picture. This code will display the text you write into "description" under the thumb.
    I hope this will help you :) as I understand a lot of people have the same problem.

  5. klynam
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic