WordPress.org

Ready to get started?Download WordPress

Forums

Relevanssi - A Better Search
Limiy search to several post types (2 posts)

  1. maorb
    Member
    Posted 2 years ago #

    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/

  2. Mikko Saari
    Member
    Plugin Author

    Posted 2 years ago #

    Yes, Relevanssi doesn't care whether it's GET or POST. It works just like that.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags