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!
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!
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
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');
This topic has been closed to new replies.