WooCommerce Filter Term Sorting by Product Count
WooCommerce filter term sorting orders choices inside a taxonomy filter, so shoppers can find common options quickly. This electronics demo puts Brand terms with the most assigned products first. Open the list and compare the order with the product counts.
Try this: Open Brand; the order follows product count, so Apple comes first.
How this demo is configured
- Create a filter by Brand (product attribute pa_brand). Show as Checkboxes. Sort terms by Posts count (high to low). Show the first 6 terms, with a More toggle.
Showing 13–24 of 36 results
-
Add to cart
Sony WF-1000XM5
$299.00 -
Add to cart
Microsoft Surface Pro 11
$1,199.00 -
Add to cart
Lenovo Tab P12
$349.00 -
Sale
Add to cart
Sony WH-1000XM5
Original price was: $399.00.$329.00Current price is: $329.00. -
Add to cart
Bose QuietComfort Ultra
$429.00 -
Add to cart
OnePlus 12
$799.00 -
Add to cart
Nothing Phone (2a)
$349.00 -
Add to cart
iPad Air 11" (M2)
$599.00 -
Add to cart
iPad Pro 13" (M4)
$1,299.00 -
Sale
Read more
Samsung Galaxy Tab S9
Original price was: $799.00.$649.00Current price is: $649.00. -
Sale
Read more
Samsung Galaxy S24
Original price was: $799.00.$699.00Current price is: $699.00. -
Add to cart
Samsung Galaxy S24 Ultra
$1,299.00
How term sorting orders a filter list
The demo uses Posts count to place Brand terms with more assigned products first. Other term sort options include name, term ID, and menu order. Choose the sequence shoppers can scan quickly.
When product-count order is useful
Product-count order surfaces terms with broad catalog coverage earlier in a long list. Choose menu order when the store needs a deliberate sequence for its Brand options.
Set the order for taxonomy terms
- Edit the taxonomy filter in a product Filter Set.
- Open Advanced (optional) and find Sort terms by.
- Choose Posts count to put higher-count terms first, or select another available order.
- Save the set and check the list. Confirm that the option order matches the chosen sort.
Term order and product order are separate
The Brand filter order is a property of its taxonomy list. The catalog sort control is a separate feature that orders the products themselves, for example by price or rating.
Use the demo to see Apple at the start of the count-sorted term list, then use the related product sorting dropdown to compare a change in product order.