How to set up filtering by category in WooCommerce: Complete guide (2025)

How to Filter Products by Category

If you run a WooCommerce store with lots of categories, then it's essential for customers to have a quick way to find products by category. Discover the easy way to add a WooCommerce category filter to your store, and watch your sales grow!

Product filters add value to online stores and help customers to find products quickly and easily. It's no surprise that more and more store owners are adding product filters to their online stores.

However, the filters that come with the WooCommerce plugin are pretty basic and don't include a category filter. There's a basic categories widget that simply lists the categories in your store with links to each one, but no actual category filter widget.

AJAX filters are real-time filtering systems that update product results instantly without requiring a page reload. These filters provide a smoother shopping experience compared to traditional filters.

When your customers shop in popular non-WordPress online stores, they're used to being able to filter by category. So why is this so difficult in WordPress and WooCommerce?!

An e-commerce site with category filter checkboxes

Fortunately, there's an easy solution. Keep reading to learn how to add a category filter in WooCommerce. You'll discover how to add WooCommerce filter by category using checkboxes, just like in the example above. And for even more flexibility, you'll learn how to create other types of category filter. This might include clickable images, radio buttons, dropdown lists, text labels, and more.

Why do you need product filters and how does filtering by category help?

A WooCommerce category filter is a navigation tool that allows customers to refine product searches by selecting specific categories. Category filters help customers find products faster by narrowing down search results to show only products from selected categories.
Faceted search is a filtering method that allows users to apply multiple filter criteria simultaneously. This creates a more refined search experience by combining categories, attributes, and other product data.
WooCommerce faceted search filters
Display category filters as images, dropdowns, checkboxes - whatever you like!

WooCommerce is the best e-commerce platform to sell online with ease. It's also the most popular.

However, the built-in widgets for filters are pretty limited. You can only filter products by basic information such as attribute, price or rating. The page refreshes every time a customer chooses an option from a filter. And even worse - there's no built-in WooCommerce category filter. As a result, there's no way for customers to refine their search by category and see more specific types of products.

By adding WooCommerce category filters to your store, you make it easy for customers to narrow down their search and find the products they want to buy faster. The faster they find the products, the faster they'll move to checkout.

Research shows that 61% of users will leave a site if they can't find products quickly. Additionally, sites with effective filtering see up to 26% higher conversion rates compared to those without.

Let's step through some of the main benefits of filtering by category in WooCommerce:

And the best thing about filtering by category?

The best part is that WooCommerce category filters are most effective when used alongside other types of filters. For example, if you set up a category filter with a price filter, attribute filter, and in-stock status filter, customers will be able to refine their search even more.

Picture this: a customer is looking to buy a red t-shirt and has a $40 budget.

Scenario 1: You're not using category filters – The customer will use the category widget to see all T-shirt products. They'll see a product catalog of dozens of t-shirts to browse through to find a red one that's under $40.

Scenario 2: You're using category filters – The customer will use category filters to make the following selections and refine their search:

  • Category: T-shirt
  • Color: Red
  • Price range: $20 to $40

And the result? They'll only see red t-shirts that are within their budget.

Introducing WooCommerce Product Filters

WooCommerce Product Filters cropped
WooCommerce Product Filters

The WooCommerce Product Filters plugin makes it easy for store owners to set up AJAX product filters, including by category, product attributes, or taxonomies. It lets you create different types of filters and display multiple filters on your WooCommerce shop pages and category pages at a time.

WooCommerce Product Filters is a plugin that provides an easy solution for non-coders to add customized product category filters to their WooCommerce store. The plugin enables store owners to create filters based on categories, attributes, custom taxonomies, product tags, colors, and price sliders.

The product filters can be based on categories, attributes, custom taxonomies, product tags, colors, price sliders, and more. You can also display the total product count next to each filter option. It's perfect for anyone looking for a WooCommerce category filter plugin.

Different options for adding a category filter to WooCommerce

Using the WooCommerce Product Filters plugin, you can add a category filter to your store in a variety of different ways:

Dropdowns

WooCommerce category filter dropdown

A dropdown category filter is a collapsible menu that displays categories in a hierarchical list. Customers can select a single category at a time to filter their search results. This is useful for stores that sell lots of different products organized into a few different categories and sub-categories. The parent-child category relationships are visible at a glance.

You can create dependent category filter dropdowns, where only one dropdown appears when the page first loads. Additional dropdowns appear as the customer makes their selections. Linked filters like this are popular for websites that structure products in a hierarchical way, for example when selling car parts online:

WooCommerce stepped filter dropdowns

Checkboxes

WooCommerce category filter plugin checkbox

A checkbox category filter is a list of categories with checkboxes next to each one. Customers can select multiple categories simultaneously. This is useful for stores that sell lots of similar types of products such as clothing. Customers can tick the checkboxes next to Blouses, T-shirts, Tunics, and Dress shirts to find a suitable top.

Category checkbox filters are probably the most popular way of filtering by category. That's because it's so easy for customers to select multiple categories at a time.

Radio buttons

WooCommerce category radio button filters

Radio button category filters display categories with circular selection buttons next to each one. Customers can view available categories at a glance and select one category to filter by.

With radio button filters, you can only select one category at a time.

Text labels

WooCommerce filter by category label

Text label category filters display WooCommerce categories like a tag cloud. Customers can quickly click on a label to view products from that category only.

Like the category checkbox filtering, you can filter by multiple text labels at a time.

Images

Image category filters display category thumbnails, with or without the category name. Customers can click on the category image to refine their search. It's a much more visual way to filter by category in WooCommerce.

As with WooCommerce category checkbox and label filters, image filters support multiple selections.

Add a category filter the list of products

WooCommerce add category filter above shop products

All of the screenshots above show WooCommerce category filters as sidebar widgets. However, that's not the only option. You can also show each type of category filter at the top of your shop.

With this option, the filters appear as dropdowns at the top of the main Shop page, category pages, and so on. You can display any of the category filter styles (checkboxes, radio buttons, images etc.) within the dropdown. For example, the screenshot above shows how a category checkbox filter looks at the top of the shop.

Mobile category filters

Mobile category filters are filter interfaces optimized for small screens. The majority of e-commerce purchases now take place on mobile devices. However, filtering requires careful thought on mobiles because of the small screen size. You don't want the filters to take up the whole page!

The WooCommerce Product Filters plugin handles mobile category filters perfectly. You can either show the mobile filters as dropdowns above the shop, or in a mobile-friendly slide-out panel:

Organizing WooCommerce category filters

Filter groups are collections of related filters that work together to help customers refine their product search. You can organize multiple filter types (categories, attributes, price) into a single group for better user experience.

One of the standout features of this WooCommerce category filter plugin is that it lets you create individual filters and then structure them into groups. The groups can then be added anywhere on your WordPress website or automatically be enabled on store pages.

The plugin lets you customize filters to offer dependent items, hide invalid filters, and hide products that are uncategorized. It also enhances the customer experience by offering the option to clear filters and scroll to the top of the page at the click of a button.

Finally, WooCommerce Product Filters lets you display the product count against each filter option. This means that you can show the number of products in each category next to the category name in the filter.

How to add WooCommerce category filters using the Product Filters plugin

Here's what you need to do to add WooCommerce category filters to your online store:

Step #1: Install and activate the WooCommerce Product Filters plugin

Get the WooCommerce Product Filters plugin if you haven't done so already. Install and activate it on your WordPress site.

The filter plugin setup wizard will now open. Use it to activate your license key and choose other options to configure your filters. For example, you can:

  • Choose whether to use instant AJAX category filters or whether to apply filters when the customer clicks a button.
  • Configure filter visibility to deliver a good user experience to your customers. You can show or hide filters by default, either on mobile or desktop.
  • Customize the text - you can change the text that appears on your filters to make it more relevant to your store, and in your language.
  • Hide filters within space-saving toggles like this:
WooCommerce toggle product filters open closed

Step #2: Create filters and group filters together

The WooCommerce Product Filters plugin makes it easy to create a category filter:

  1. Navigate to Products Filters in the WordPress panel.
  2. Either open the default filter group or create a new one.
  3. On the 'Edit filter group', page, click the 'Add new filter' button.
  4. Fill in the details to add a new filter. You can set the name, filter by, filter type, and assign to group options. Set the filter data option to Categories to create a category filter.
  5. When you select a category filter, an option appears letting you choose the style of the WooCommerce category filter. This is where you choose whether you want checkboxes, a dropdown, images, etc.
  6. Repeat this step to create more filters. For example, you might want to create an attributes filter and price filter to go with the categories filter. This way, customers will be able to narrow down their search even further.
WooCommerce product filter styles types
Choose a style for your WooCommerce product categories filter

Tip: If you're creating category dropdown filters, then you can choose whether they will always be visible, or whether additional dropdowns will appear as the customer makes their selections. (Like in a car parts shop.) To do this, select the "Display categories and sub-categories as separate dropdowns" option.

woocommerce dynamic filter categories and subcategories in simple or different dropdowns

Step #3: Add filters to shop pages

It's easy to display a group of filters anywhere on your WooCommerce site.

You can configure the WooCommerce Product Filters plugin's settings to enable filters on the shop page and archive pages. The filter group you select will appear on the product list pages that WooCommerce creates – including the shop pages, categories page, and product tag archives.

By default, the category filter will appear in a horizontal layout above the list of products. Optionally, you can choose to display the filters in a sidebar or on specific pages using shortcodes. Simply go to Appearance → Widgets, add a 'Product Filters' widget to the sidebar, and select the group containing your category filter:

WooCommerce product attribute filter widget

Alternatively, the category filter plugin comes with a shortcode which you can use to display filters anywhere. This is useful if you're listing your products in custom ways, for example using Gutenberg, Elementor, Divi Builder, or the [products] shortcode that comes with WooCommerce. Just copy the shortcode from the main list of filter groups in the admin, and add it where you want the filters to appear. (See the plugin documentation for a list of shortcode options.)

WooCommerce products shortcode with filter shortcode
An example of a store which has added a filter group above the products shortcode which comes with WooCommerce

This method is also useful when you're using WooCommerce Product Filters with third party plugins. For example, it integrates with the WooCommerce Product Table plugin so that you can create one page order forms with category filters:

WooCommerce Product Filters Table Integration
Using WooCommerce Product Filters with the Product Table plugin

Add category filters to WooCommerce today

WooCommerce category filters are navigation tools that help customers narrow down their product search and quickly find the products they want. The easiest way to add category filters is by using the WooCommerce Product Filters plugin.

This well-designed plugin makes it incredibly easy for non-coders and developers to add product category filters. It can save you valuable time and effort, while also enabling you to have a professional and organized store. And the end result? More sales for you.

Ready to set up a category filter in WooCommerce? Get the WooCommerce Product Filters plugin today!

Please share your thoughts...

Your email address will not be published. Required fields are marked *