[Plugin: Relevanssi – A Better Search] Limiy search to several post types
Suppose I have several post types in my site, and I create several search forms to display in different areas of my site.
Can I POST in in a hidden input field in the search form to limit it to certain post types, as is with GET?
If I want to limit the search to 2 or more post types, and not just one, how should I pass the paramerer? Will a string separated by commas work?
i.e. something like –
<input id="post_types" name="post_types" type="hidden" value="myTypeA,myTypeB" />
- The topic ‘[Plugin: Relevanssi – A Better Search] Limiy search to several post types’ is closed to new replies.