Add sorting and pagination
Sorting changes order; pagination changes which slice of that ordered result set is visible. Configure both through Faceted Search controls, not the ordinary listing pagination.
Add sorting
- Add Faceted Search Sort near the result heading.
- Enter an optional Label.
- In Options, enter comma-separated
value:Labelpairs. - Set Default to one of the listed values.
Built-in values include:
| Value | Default label |
|---|---|
default |
Default |
date_desc / date_asc |
Newest / Oldest |
title_asc / title_desc |
Title A-Z / Title Z-A |
price_asc / price_desc |
Price low-high / Price high-low |
rating_desc |
Top rated |
distance_asc |
Distance |
Price and rating ordering are meaningful for compatible WooCommerce results. Distance ordering requires an active location selection.
With POM Tweaks Country pricing zones, price_asc and price_desc order WooCommerce products by the current regional price projection instead of the global _price field. Ascending order uses each product's lowest purchasable regional price; descending order uses its highest. Products unavailable in the resolved zone are excluded from that regional price order.
Custom meta sorts must first be declared for the context under Managed meta sorting. Each entry needs an ID, meta key, type (CHAR, NUMERIC, or DATE), and label. Use the declared ID in the sort control.
Choose a pager
Add one Faceted Search Pager and select:
- Numbers for direct page access;
- Load more to append the next page;
- Next only for a simple forward action;
- Next + Previous for sequential movement;
- Infinite to append automatically near the end.
The pager exposes labels and button styling only where they apply.
Add a page-size selector
Use Faceted Search Per Page when visitors genuinely need it. Enter comma-separated numeric Options, such as 12,24,48, and set a listed Default.
Keep the largest choice reasonable for the complexity of each card. A very large page can make every filter refresh heavier.
Verify stable ordering
Test page one and a later page for each public sort. Change a filter while on a later page and confirm the refreshed state is coherent. Copy a URL with non-default sorting or page size and confirm those controls restore correctly. If country pricing is active, repeat the low-to-high and high-to-low checks from two zones whose product order differs.
For URL parameter behavior, see Use shareable filtered URLs.