WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
ngg-search 0.7.0 (NGG-DB search_for_images) (1 post)

  1. reinhardf
    Member
    Posted 10 months ago #

    Hi,

    i use ngg-search 0.7.0 from Alex Rabe. so that the images can be found on wordpress search. For the search function "search_for_images" from ngg-db.php is used.

    The Problem:
    Excluded images are still displayed.

    I have therefore "AND exclude = 0" inserted here (function search_for_images):
    // build the final query
    $query = "SELECT t.*, tt.* FROM $wpdb->nggallery AS t INNER JOIN $wpdb->nggpictures AS tt ON t.gid = tt.galleryid WHERE 1=1 AND exclude=0 $search ORDER BY tt.pid ASC $limit_by";

    This works but it's a hack. Maybe there's a better solution ?
    And is it a general error in Nextgen Gallery or only a problem when using the plugin ?

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.