Reputation: 2567
I need to create multiple search fields that each search different content in WordPress. I know about Search Everything, which is helpful with specifying what is searched, but doesn't allow multiple, unique instances with their own search parameters.
Any help is appreciated!
Upvotes: 0
Views: 533
Reputation: 447
For custom searching categories, you add a hidden input field to the search form, I'm sure there is a variation for content types.
<input type="hidden" name="cat" value="22" />
Possibly
<input type="hidden" name="post_type" value="your content type slug / name" />
Upvotes: 1