• I’m looking to have the slideshow widget on the homepage of my site include all photos from various galleries EXCEPT those in one particular album. Digging in the code I found the following wpdb query in “wp-content/plugins/nextgen-gallery/xml/imagerotator.php”…

    if($galleryID==0)
    	{
    	$thepictures = $wpdb->get_results("SELECT t.*, tt.* FROM $wpdb->nggallery AS t INNER JOIN $wpdb->nggpictures AS tt ON t.gid = tt.galleryid WHERE tt.exclude != 1 ORDER BY tt.{$ngg_options['galSort']} {$ngg_options['galSortDir']} ");
    	}

    I’m guessing I need to add some sort of exclude in that database call, something like “AND t.id != 3” or “AND tt.id != 3” after “WHERE tt.exclude != 1” but doing so just breaks the XML (no values).

    Please advise what the correct code should be to get this to exclude images in one album. Thanks!

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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: NextGEN Gallery] Exclude album in slideshow?’ is closed to new replies.