Hello, how do you exclude post type from website search results / Archive?
Hi,
You can setup Views wordpress archive for the wordpress built-in search results page, see our document:
https://toolset.com/documentation/user-guides/creating-wordpress-custom-post-archives/
see screenshot search-result.JPG, enable option "Search results".
When you edit the Views WordPress archive, in section "Loops Selection", find option " Search results", there is an "Edit" button, click it you will be able to choose specific post types, see screenshot, select-post-type-button.JPG
I just came across this tickbox setting on post type -
exclude_from_search
Whether to exclude posts with this post type from search results.
Would this exclude items from the websites search?
We have some content types that we would like to:
Type 1. Exclude from website WordPress search and exclude from web/google search
Type 2. Exclude from website WordPress search and include in web/google search
How do we achieve this?