Product filtering
Overview
Emit automatically generates a filter sidebar on product pages. Visitors can filter products by:
- Categories — the main product groups
- Subcategories — subgroups within a category
- Custom fields — attributes such as brand, material, colour…
Filters work without refreshing the page and are kept in the URL for sharing.
How does filtering work?
Filter sidebar
On the left side of the product page a sidebar with the available filters is shown:
┌─────────────────┐
│ Categories │
│ ○ Electronics │
│ ○ Clothing │
│ ○ Footwear │
│ │
│ Brand │
│ □ Samsung │
│ □ Bosch │
│ □ LG │
│ │
│ Colour │
│ □ Black │
│ □ White │
│ □ Blue │
└─────────────────┘
Filtering logic
| Situation | Logic | Example |
|---|---|---|
| Same filter, several values | OR | Brand: Bosch OR Samsung |
| Different filters | AND | Brand: Bosch AND Capacity: 9 kg |
URL parameters
Every filter is reflected in the URL:
/products?category=electronics&brand=Bosch&brand=Samsung&capacity=9kg
This enables:
- Sharing filtered results — copy the URL and send it to someone
- Bookmarking — save a filtered view in your bookmarks
- SEO without duplicates — filtered, sorted and page-2+ URLs automatically get
noindex, followand a canonical link to the clean category page. Google then indexes the clean page and the products, not thousands of filter combinations. Links carryingutm_and similar campaign-tracking parameters stay indexable.
Setting up filters
Step 1: Create categories
Categories automatically appear as filters:
- Go to Products → Manage Categories
- Add categories (e.g. "Electronics", "Clothing")
- Optionally add subcategories
Step 2: Create filterable custom fields
- Go to Admin → Custom Fields
- Create a new field:
- Label: e.g. "Brand"
- Post Type: Products
- Field Type: Select (recommended for filtering)
- Options: e.g. "Samsung, Bosch, LG, Apple"
- Set Display Mode to "Fixed"
- Tick "Enable filtering" ✅
- Optionally choose the categories the filter applies to
Step 3: Fill in the values on products
- Open every product for editing
- In the Product Attributes section choose the values
- Save
Important: The filter shows only values actually assigned to products. If no product has the brand "Apple", that option will not appear in the filter.
Category filters
Restricting filters to categories
Custom fields can be tied to specific categories:
| Setting | Behaviour |
|---|---|
| No categories | The filter is shown for all products |
| Selected categories | The filter is shown only when that category is active |
Example:
- The "Capacity" field tied to the "Washing machines" category — shown only when the visitor filters by "Washing machines"
- The "Brand" field without a category — always shown
Pagination with filters
When filters are active, pagination keeps them:
- Page 1 with a filter →
/products?brand=Bosch - Page 2 with a filter →
/products?brand=Bosch&page=2
The number of products per page is set in the Products List component (default 6).
Mobile devices
On mobile devices the filter sidebar is hidden automatically and shown as:
- A Filter button at the top of the page
- When clicked, the sidebar appears as an overlay
- The visitor picks the filters and closes the panel
Frequently asked questions
Why is my custom field not shown as a filter?
Check:
- Is Display Mode set to "Fixed"?
- Is "Enable filtering" ticked?
- Is Post Type set to "Products"?
- Does at least one product have a value for that field?
Can I hide the filter sidebar?
The filter sidebar is shown automatically on pages with the Products List component. It currently cannot be hidden completely, but on mobile devices it is hidden behind a button.
Do filters affect performance?
Not significantly. Filtering is done server-side when the page loads, using efficient reading of JSON files. For most shops (up to a few hundred products) filtering is instant.
How do I reset all filters?
The visitor can click the page name in the navigation or remove the parameters from the URL. Filters are cleared when the URL returns to the base path (e.g. /products).