Special option to filter search results based on specific parameters ( like product ID, category, etc. ).
Advanced Woo Search PRO has special options to filter search results based on different parameters like product category, product tag, custom fields, etc.
Filters are divided into several groups based on what results they are filtering. It is products results filters, taxonomies archive pages results filters and users archive pages results filters. Each of this group has a unique set of available filter options.
Combine the filter with search form filter buttons feature to create even more complex search solutions for your users.
To get started with the filter just navigate to the plugin settings page -> Search results tab and scroll down to the Filter Results section. Here you can find all available filter groups.
Click on the needed button to create your first filter rule.
For example - let's create a filter for product search results. Click Filter products search results button. Then choose following filter rules:
Product category -> equal to -> Decor
With this filter search form will show only the product search results from the Decor category and all its child categories.
Note that you can combine the filter in AND or OR groups. Search results must match all rules inside AND group to be filtered. If you have several OR groups, then the search result must match at least one of these group rules. This feature gives the possibility to create complex filter rules.
For example, we can create filter rules to include to search results only products from product categories Decor and Hoodies. We can just use an additional OR group for this.
Also note that you can choose between equal to
and not equal to
comparison operators. This means that you can not only create the filter rules to include certain search results, but also create the filters to exclude some search results.
Search results filters options allows to create filtering rules for three search results groups: products, terms and users. Each of this group has its own set of filtering rules that will be mentioned below.
Also these search results groups have common filtering rules that relate to current user and page conditions.
For example: you can set filtering rules based on current user role or current page type.
Here is a list of such universal filtering conditions:
Condition name | Suboptions | Operators | Compare values |
---|---|---|---|
Current user | - | =, != | Users list |
Current user role | - | =, != | Users roles list |
Current user device | - | =, != | Desktop Mobile |
Current page | - | =, != | Pages list |
Current page template | - | =, != | Page templates list |
Current page type | - | =, != | Page types list |
Current page archives | Taxonomies list | =, != | Taxonomies terms list |
Current search text | - | =, !=, *, !* | String |
Include/exclude products search results based on different filter parameters.
Just navigate to the plugin settings page -> Search results page and find Filter Results options section. Click on Filter products search results button to create filters for products search results.
You can choose from the following available filters.
Condition name | Suboptions | Operators | Compare values |
---|---|---|---|
Products | - | =, != | Products list |
Products type | - | =, != | Product types list |
Products stock status | - | =, != | Stock statuses list |
Product is on sale | - | =, != | Yes No |
Product is featured | - | =, != | Yes No |
Product visibility | - | =, != | Visibilities list |
Product category | - | =, != | Categories list |
Product tag | - | =, != | Tags list |
Product taxonomy | Taxonomies list | =, != | Taxonomy terms list |
Product attributes | Attributes list | =, != | Attribute values list |
Product custom attributes | Attributes list | =, != | Attribute values list |
Product custom fields | Custom fields list | =, != | Custom field values list |
Product shipping class | - | =, != | Shippings classes list |
Filter taxonomy archive pages search results.
First of all please make sure that taxonomy archive pages search feature is available. Just open the plugin settings page -> Search results tab and find Archive pages option. Make sure that at least one taxonomy from this list is enabled.
When taxonomies pages search is enabled you can set the needed search results filter.
Then navigate to the plugin settings page -> Search results page and find Filter Results options section. Click on Filter taxonomies archive pages results button to create filters for terms archive pages search results.
It is possible to choose from the following available filters.
Condition name | Suboptions | Operators | Compare values |
---|---|---|---|
Term page taxonomy | Taxonomies list | =, != | Taxonomy terms list |
Term products count | - | =, !=, >=, <= | number |
Term hierarchy type | - | =, != | Top parent Child |
Term has image | - | =, != | Yes No |
Filter users search results.
First of all please make sure that users search feature is available. Just open the plugin settings page -> Search results tab and find Archive pages option. Make sure that Users field is enabled. Also click on the gear icon near it and enable all user roles that must be available for searching.
Second - go to the plugin settings page -> Search results page and find Filter Results options section. Click on Filter users archive pages search results button to create filters for users search results.
It is possible to choose from the following user based filters.
Condition name | Suboptions | Operators | Compare values |
---|---|---|---|
User | - | =, != | Users list |
User role | - | =, != | User roles list |
User products count | - | =, !=, >=, <= | number |