Forums

[Plugin: NextGEN Gallery] How to get the gallery id inside the loop? (1 post)

  1. javierfaus
    Member
    Posted 2 years ago #

    Hello there, I have been looking for a way to get the gallery id inside the loop but no look.

    Just something like:

    ...
    query_posts('cat=4&posts_per_page=1&orderby=rand&order=DESC');
    while (have_posts()) : the_post();
    ...
    $ID=nggGetTheGalleryId(); // this would be the function
    echo nggShowSlideshow($ID,333,177);
    ...
    endwhile;

    I want to show a random gallery with a specific size inside of my home and still not have to write the size for all my posts.

    Any help would be very appreciated.

    Javier.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.