Support » Plugin: Relevanssi - A Better Search » Checkboxes to select category and post type inclusive

  • I want to create a search box that allows the user to enter a keyword, select one or most post types, and select one or more categories, using checkboxes (not radio buttons or a dropdown). The results page would show posts that matched the keyword and ALL of the checkboxes selected. Kind of like a faceted search across post types and categories. Is this possible with Relevanssi? Thanks!

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


    Yes, that is possible. Build a proper tax query from the checkboxes and make sure you use the correct relation (“AND”, if you want the results to match EVERY category, “OR” if you want ANY category).

Viewing 1 replies (of 1 total)
  • The topic ‘Checkboxes to select category and post type inclusive’ is closed to new replies.