How to Filter and Sort Posts by Custom Field Value Using JetSmartFilters + Bricks Builder

TL;DR AI
2 min readKey summary
A tutorial shows how to use JetSmartFilters with Bricks Builder to filter posts by a selected custom field and then sort the results by that field’s numeric value.
It uses a radio control that passes a plain query variable into a Bricks query loop, rather than relying on native JetSmartFilters sorting.
A PHP hook in functions.php filters out posts missing the chosen meta field and orders the rest in descending order.
The approach offers a practical workaround for combining filtering and custom-field sorting in WordPress when built-in support is limited.

