Documentation / Filter Set

Filter Set

Overview

Filter Set is Filters grouped together. Such organization allows you conveniently, literally in few clicks, to change settings common to all filters in the Set. For example, specify pages where they will be located and the Post type they will filter.

Technically Filter Set is a separate WordPress Post type, such as Page or Post, so it has its own menu item in the Administration panel and you can create and edit an unlimited number of Filter Sets.

Filter Set edit screen contains two main Meta Boxes – Filters and Settings. The purpose of the Filters box is to store all the Filters of a given Set.

Common Settings

Name Description
Title The name of the Filter Set. Used only in the WordPress Admin Panel and is not displayed on site pages.
Post type Determines Post type for posts that will be filtered. For example, for WooCommerce products you need to select Post type “Products”
Location Defines a page or list of pages, where this Filter Set will be displayed.
Query Determines which WP Query on the selected page should be filtered. This allows you to filter not only the default WP Query (Main query), but also any custom ones.
Hide empty Terms Defines whether or not to hide in the filtering widget terms that do not contain posts at all.
Show count Determines whether to display the number of posts in the term. Enabled by default.
Hide empty Filters Determines whether to hide the entire Filter from the widget if none of its terms contain posts.
CSS ID or Class of Posts Container Allows you to specify an individual posts container selector for correct AJAX filtering for this Filter Set.
Order № Allows you to set the priority for the filter set. This option is useful on pages where you need to use multiple filter sets and the order in which they appear depends on the given priority.

Location

The Location field supports inheritance from the parent term. Suppose you have a product category “Electronics” and its children categories are “Smartphones”, “Laptops” and “TVs”. If you select “Electronics” for the Filter Set location this Set will automatically appear on the pages of the “Smartphones”, “Laptops” and “TVs” categories.

If you need a separate Filter Set for the child “Laptops” products category, you can create a new one and specify this products category as location for it.

Multiple Filter Sets on the same page

You can use several Filter Sets on one page and display several Filter widgets accordingly. Moreover, you can filter different post types at the same time on the same page.

To display two or more different Filter Widgets on a page, you need to add two or more Filter Everything widgets to the page.

The order in which multiple Filter widgets are displayed on a page is determined by the Order № parameter value for each Filter Set. The Filter Set which has higher value of this parameter will be displayed first.

You can also use a shortcode [fe_widget] and use the “id” attribute to explicitly specify which Filter Set to display in the desired location. In this case, the rest of the widgets will take into account the already displayed Filter Set and will automatically display the rest Filter Sets related to the page.

Managing Filter Set

Create a Filter Set

In the WordPress Admin Panel go to the Filters > Add New and you will see the editing screen of the new Filter Set. Fill up the Title field, specify Post type, add new Filters, optionally specify Location of the Filter Set and publish the Set.

Remove a Filter Set

You can remove Filter Set just like any WordPress post by clicking “Move to Trash” link. In this case all Filters that are in the Filter Set will also be removed. Filter Set with its Filters can be restored from the Trash. But if you delete permanently the Filter Set from the Trash , it will not be possible to restore it.

Make your filtering best with