Please try checking for plugin conflicts by deactivating the third party plugins the reactivate them back one by one to see the one that falls culprit.
I disabled all my plugins apart from the salient ones and the issue still persists. I also accessed another website of mine that uses Salient and has been updated to the latest WordPress version and the issue is happening there too.
I am thinking that the search is just not picking up any portfolio items anymore since the last WP update.
The theme does not really alter the default search that is provided by wordpress. If you need more control over what the search can look for then you will need to use a plugin for that.
Hello,
Up until 2 weeks ago, I could find portfolio items when I used the search functionality of my website. Now it just shows pages.
Is this a known issue? Does it have to do with a WordPress update?
Many thanks,
Vicky
Hi Vicky,
Please try checking for plugin conflicts by deactivating the third party plugins the reactivate them back one by one to see the one that falls culprit.
Thanks.
Hello Andrew,
I disabled all my plugins apart from the salient ones and the issue still persists. I also accessed another website of mine that uses Salient and has been updated to the latest WordPress version and the issue is happening there too.
I am thinking that the search is just not picking up any portfolio items anymore since the last WP update.
Any thoughts?
Many thanks,
Vicky
Hi Vicky,
The theme does not really alter the default search that is provided by wordpress. If you need more control over what the search can look for then you will need to use a plugin for that.
Try using this plugin or similar : https://wordpress.org/plugins/search-everything/ .
Kind regards.
Hello Andrew,
I just had to add this function to make sure it looks through the portfolio custom posts as well
function include_custom_post_types_in_search_results( $query ) {
if ( $query->is_main_query() && $query->is_search() && ! is_admin() ) {
$query->set( 'post_type', array( 'post', 'portfolio' ) );
}
}
add_action( 'pre_get_posts', 'include_custom_post_types_in_search_results' );
But yeah I guess something is interfering with the search query.
Many thanks anyway,
Vicky