I want to restrict results to a specific category

In this video tutorial, you learn how to use so called “Hidden Fields” to restrict the search results to a given category (or tag or any other taxonomy and custom field).

In our example, we want to enhance a “music product” search, we created to demonstrate how to show only certain options for select-boxes. To show only music products, we’ve added a hidden field, which restricts the results to the category “Music”. Otherwise the fulltext search, we added in this search form would search all products, which matches.

To restrict a search to a given taxonomy term, you have to add a “Hidden Field”, select the taxonomy as the data source and enter the ID of the term. If you want to restrict a search to a given custom field, you have to select the custom field instead and enter the text of the custom field.


Use our search to find more help:

Search
Category
Tag

© 2014, websupporter | Credits

This is a demo store for testing purposes — no orders shall be fulfilled.