• Is it possible to have different search types on different pages on the same site?

    For example, on one page I want users to use the search engine to search JUST regular posts.

    On another page I want users to be able to search JUST one particular custom post type.

    On another page, to be able to search all the Ultimate Member users, etc.

    Is this possible with this plugin?

Viewing 1 replies (of 1 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Yes. You need to have separate search forms for each different search, and to add the necessary search parameters to the forms.

    To restrict the search to just posts, add

    <input type="hidden" name="post_types" value="post" />

    To target a different post type, just change “post” to the name of the post type.

Viewing 1 replies (of 1 total)

The topic ‘Different Searches on Different Pages’ is closed to new replies.