Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Yes. By default, Relevanssi only shows pending posts in the admin search.

    add_filter('relevanssi_post_ok', 'rlv_show_pending', 11, 2);
    function rlv_show_pending($post_ok, $doc) {
        	$status = relevanssi_get_post_status($doc);
        	if ($status == 'pending') $post_ok = true;
        	return $post_ok;
    }

    Add this code to your theme functions.php to make pending posts visible to everybody.

    Thread Starter luqo33

    (@luqo33)

    Thanks so much. This is now resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to make Relevanssi search 'pending 'posts?’ is closed to new replies.