[Plugin: Relevanssi]How to exclude/include multiple custom post types in search?
-
Hello,
I’ve been struggling with something that ought to be simple to do…but failed to find the solution.
There exists an earlier post that shows how to restrict the search to a single post type by adding an input field. That is really nice.Now, there remain two questions for me:
1- how do you restrict the search to multiple post types ? (as in, I want results only of type A or B)
2- how do you *exclude* one or more post types from search results? (as in, I want results except of type C or D)I’m posting here in the hope that the answers will remain available for whoever wants to use this great plugin!
Cheers
Palijn
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘[Plugin: Relevanssi]How to exclude/include multiple custom post types in search?’ is closed to new replies.