Adaptive product filters for WooCommerce

The way WordPress handles this by default is not ideal – they provide the WP_Query object – through that, you can add whatever filters you like but there’s no easy way I know of to create adaptive filters.

That’s one of the reasons I created my Faster Woo Widgets plugin – it does exactly what you’re looking for – it lets you create category widgets with either adapative or standard filters – if you choose adaptive, then a category list of 10 items will become, for example, a list of only 2 items once you have selected the colour Red.

https://www.wpintense.com/knowledgebase/adaptive-filters/

The way I handle this code is through my own custom SQL code. It’s a join from wp_posts to wp_taxonomies and the related tables from there.