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

  1. reinhardf
    Posted 3 years ago #


    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 ?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.