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 25–36 of 36 results
-
Sale
Add to cart
Google Pixel 8
Original price was: $699.00.$549.00Current price is: $549.00. -
Add to cart
Google Pixel 8a
$499.00 -
Add to cart
iPhone 15 Pro Max
$1,199.00 -
Add to cart
Microsoft Surface Laptop 7 (13.8")
$1,199.00 -
Add to cart
HP Spectre x360 14
$1,449.00 -
Sale
Read more
Acer Swift Go 14
Original price was: $849.00.$699.00Current price is: $699.00. -
Add to cart
iPhone 15
$799.00 -
Add to cart
MacBook Pro 14" (M3 Pro)
$1,999.00 -
Sale
Add to cart
Dell XPS 13 (9340)
Original price was: $1,199.00.$1,049.00Current price is: $1,049.00. -
Add to cart
Lenovo ThinkPad X1 Carbon Gen 12
$1,649.00 -
Sale
Add to cart
ASUS ROG Zephyrus G14 (2024)
Original price was: $1,599.00.$1,399.00Current price is: $1,399.00. -
Sale
Add to cart
MacBook Air 13" (M3)
Original price was: $1,099.00.$999.00Current price is: $999.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.