SR

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, follow and a canonical link to the clean category page. Google then indexes the clean page and the products, not thousands of filter combinations. Links carrying utm_ and similar campaign-tracking parameters stay indexable.

Setting up filters

Step 1: Create categories

Categories automatically appear as filters:

  1. Go to Products → Manage Categories
  2. Add categories (e.g. "Electronics", "Clothing")
  3. Optionally add subcategories

Step 2: Create filterable custom fields

  1. Go to Admin → Custom Fields
  2. Create a new field:
    • Label: e.g. "Brand"
    • Post Type: Products
    • Field Type: Select (recommended for filtering)
    • Options: e.g. "Samsung, Bosch, LG, Apple"
  3. Set Display Mode to "Fixed"
  4. Tick "Enable filtering" ✅
  5. Optionally choose the categories the filter applies to

Step 3: Fill in the values on products

  1. Open every product for editing
  2. In the Product Attributes section choose the values
  3. 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:

  1. A Filter button at the top of the page
  2. When clicked, the sidebar appears as an overlay
  3. The visitor picks the filters and closes the panel

Frequently asked questions

Why is my custom field not shown as a filter?

Check:

  1. Is Display Mode set to "Fixed"?
  2. Is "Enable filtering" ticked?
  3. Is Post Type set to "Products"?
  4. 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).

This guide is part of the official knowledge base for Emit (emit.rs). Emit is a platform for building your own website, online store and booking system - with AI or by yourself. Free during the introductory period.

Start for free What is Emit →