Future posts in Search results
-
Hi there!
First of wonderful plugin. As stated by many others a real jewel.
While I was playing around a bit with it today I noticed it changes a specific function I created for my normal wordpress search to display future posts out of a specific category as well in search results. (we have future events which fall under the post_status future items.
So I made something like this;
/** * Display scheduled / future posts of Agenda in Search */ if (!is_admin()) : function __include_future($query) { global $post; if ($query->is_search()) { if (is_category(26)) { // the main agenda category id } else { $GLOBALS['wp_post_statuses']['future']->public = true; } } } add_filter('pre_get_posts', '__include_future'); endif;
This works just fine with normal WordPress Search but it seems SearchIQ breaks this and reverts it back to only post_status publish.
Is there a hook or something I can do to get that behavior back as it ?
Hope you can help me out with this one.
Kind regards,
Patrick
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Future posts in Search results’ is closed to new replies.