Support » Plugin: bbPress Live Topic Suggestions » Excellent plugin, but not works in WP 4.7

  • This is a cool plugin, but it doesn’t work

    This is a solution:

    Open the module.get-data.php and replace next lines

    $topics = $wpdb->get_results('SELECT * FROM '.$wpdb->posts.' WHERE post_title LIKE "%' . mysql_real_escape_string(trim($title)) .'%" AND post_type="topic" AND post_status="publish"' );
    to

    $query = $wpdb->prepare('SELECT * FROM '.$wpdb->posts.' WHERE (post_title LIKE "%1$s" OR post_content LIKE "%1$s") AND post_type IN("topic", "faq") AND post_status IN("publish", "closed") ORDER BY post_date DESC', "%$title%" );
    $topics = $wpdb->get_results($query);
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Excellent plugin, but not works in WP 4.7’ is closed to new replies.