Fix to ‘post_status’ => ‘publish’,
-
Hello.
i wrote this issue before. but you dont fix it yet.
you have add this code to your plugin files of EonetLiveSearch.php page at line 166
'post_status' => 'publish',
so new search args is:
$search_args = array( 's' => $search, 'post_status' => 'publish', 'fields' => array('ids', 'post_type'), 'post_type' => eonet_get_option('search_post_types', $this->default_post_types) );
because without that: the results shows the draft posts or pages.
thanks.
- The topic ‘Fix to ‘post_status’ => ‘publish’,’ is closed to new replies.