This question already has an answer here:
I want to set up a search function as a widget in wordpress. This is the situation that I have.
1- I have 3 custom post types 1.a: Each post type has custom fields and taxonomies.
- I have regular wordpress section with categories and tags.
So this is what I want the search to do:
There will be a selection option in the search form, and when the user is going to search they will select from the following:
a. entire site b. post type a c. post type B d. Post type D
Thank you for your help. Please avoid suggesting a plugin. I am looking for custom functions that will search custom fields, custom taxonomies, and the post types.
Thank you for taking the time to read this.