WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Relevanssi – A Better Search] Limiy search to several post types

[Plugin: Relevanssi – A Better Search] Limiy search to several post types

  • Hi,

    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" />

    Thanks

    http://wordpress.org/extend/plugins/relevanssi/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Relevanssi – A Better Search] Limiy search to several post types’ is closed to new replies.