WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
Trying to get a specific value from db, for the current page (1 post)

  1. tomystein
    Member
    Posted 2 years ago #

    I am trying to get the title from Nextgen Gallery.

    This is the code I have:

    <?php
    global $nggdb;
    $gallery = $nggdb->get_gallery(4, 'sortorder', 'ASC', true, 1, 0);
    foreach($gallery as $image) {
        echo $image->alttext;
    }
    ?>

    I know that like this I get to the db, and I am also able to get the first image's title.

    But the problem is that I am not getting the current page/image title. Only the first one.

    How can I get a dynamic title (alttext) and not only the first one?

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic