Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Specific custom post type not showing up in search results › Reply To: Specific custom post type not showing up in search results
December 5, 2022 at 2:33 pm
#40402
Keymaster
Hi Nikki,
This could be in relation to a WordPress WP_Query bug, which was recently noticed. I have changed one of the sub-queries to use the “post_type=>”any” argument, which apparently is not working as it should in WordPress for some reasons.
Anyways, can you please try the following fix:
– Please open the wp-content/plugins/ajax-search-pro/includes/classes/Search/SearchIndex.php file on your server
– Replace it’s content with this
– Save, and try the search again
If all goes well, the results should start appearing immediately.