WordPress.org

Ready to get started?Download WordPress

Forums

Search Unleashed
Plugin is displaying drafts & scheduled posts (2 posts)

  1. TheDudeAbides
    Member
    Posted 3 years ago #

    I've been forced to disable this plugin and search for a replacement as it was showing my drafts and scheduled posts. I was using Mysql full-text, but it also occurred with indexed as well and Lucene just resulted in php errors. I didn't even noticed this hasn't been updated for 1.5+ years. Oh well perhaps yolink or wp-search will work better.

  2. thehen2
    Member
    Posted 3 years ago #

    I fixed this by adding the following line of code to spiders.php after line 82:

    $this->post_sql .= " AND {$wpdb->posts}.post_status!='trash' AND {$wpdb->posts}.post_status!='pending' AND {$wpdb->posts}.post_status!='draft' AND {$wpdb->posts}.post_status!='auto-draft' AND {$wpdb->posts}.post_status!='future' AND {$wpdb->posts}.post_status!='private' AND {$wpdb->posts}.post_status!='inherit'";

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic