Forums

[Plugin: NextGEN Gallery] I'll ask again. exclude galleries from recent images (3 posts)

  1. kkroc
    Member
    Posted 3 years ago #

    Does anyone know if there is a way to exclude images from the DisplayRecentImages function? I have searched everywhere and have posted the question everywhere I can think of?
    Thanks!

  2. kkroc
    Member
    Posted 3 years ago #

    I have asked this and looked everywhere, but will try again here....

    Is there a way to show recent images (which I can do) but exclude some galleries from this? I am not looking to do this in a widget. in a page template. I have tried this and it works, but pulls from all galleries.
    <?php
    $exclude = 'all';
    $list = '3';
    $number_of_pic = '5';
    $Width = '100';
    $Height = '75';
    if (function_exists('nggDisplayRecentImages'))
    { nggDisplayRecentImages($number_of_pic,$Width,$Height,$exclude,$list);
    }
    ?>

  3. ls.sanz
    Member
    Posted 3 years ago #

    I found how in
    http://www.vuthy.com/blog/2008/11/16/nextgen-gallery-random-photos-from-a-specific-gallery/

    You just have to call the nggDispalyRecentImages with "denied" in $exclude var, and specifying which galleryis you want to exclude in $list example:
    nggDisplayRecentImages('5','80','80','denied','14');

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags