• 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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter kkroc

    (@kkroc)

    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);
    }
    ?>

    I found how in
    https://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‘);

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: NextGEN Gallery] I’ll ask again. exclude galleries from recent images’ is closed to new replies.