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!
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" />
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.