How to Filter WooCommerce Products by Category in WordPress?

Key Takeaways

  • Utilizes the Product Listing block from Nexter Blocks to implement category filters in WooCommerce.
  • Activates the Category Wise Filter toggle in the Filters tab to enable product filtering by category.
  • Offers customization options for filter labels and styles in the Style and Hover Style sections.
Table of Contents

Filtering WooCommerce products by category in WordPress is a powerful way to optimize your online store and enhance the shopping experience for your customers. By allowing visitors to browse products based on specific categories, you streamline the search process and make it easier for them to find what they’re looking for.

With the Product Listing block from the Nexter Blocks, you can easily add a category wise filter to your product listing.

To check the complete feature overview documentation of the Nexter Blocks Product Listing block, click here.

Requirement  – This block is a part of the Nexter Blocks, make sure its installed & activated to enjoy all its powers.

To do this, make sure you’ve added some products to your WooCommerce store, then follow the steps – 

1. Add the Product Listing block on the page. 

2. Then select Normal from the Type section and select the appropriate style and layout.

Note: Category filter is not available in the Carousel layout.

3. Then go to the Filters tab, and turn on the Category Wise Filter toggle.

product listing category filter new

To ensure this works, make sure to assign categories to your products, only then it will show here.

Now you’ll be able to see filter options in your product listing that you can use to filter the products.

You can set the filter by category or tag from the Filter by section. Let’s keep it to category.

Note: In a similar way, you can set filters by tag as well. 

You can turn on the All Filter toggle to add an additional filter label to show all the products. You can edit the filter label from the All Category Text field.

From the Style and Hover Style, you can choose different styles for the category filter labels for normal and hover states.

From the Alignment section, you can align the filter.

product listing filters demo 2

Also, check How to Display WooCommerce Products by Category in WordPress.

Share your Thoughts

Get Instant Answers to all your questions about Nexter Blocks,
Extensions & Theme trained on 1000+ Docs and Videos

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!