Forums

[Plugin: NextGEN Gallery] Exclude album in slideshow? (2 posts)

  1. Zoinks! Graphics
    Member
    Posted 2 years ago #

    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/

  2. Zoinks! Graphics
    Member
    Posted 2 years ago #

    Here's the link to my site: http://www.rjdgallery.com/. Basically I want all the photos except those in the "Openings" album to display in the sidebar slideshow on the homepage.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.