Menu

How to Filter and Sort Posts by Custom Field Value Using JetSmartFilters + Bricks Builder
πŸ“°
0

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

DEV CommunityΒ·MuazzamΒ·about 1 month ago
#jHsUG5Rw
#how#wordpress#query#query_vars#filter#bricks
Reading 0:00
15s threshold

How to Filter and Sort Posts by Custom Field Value Using JetSmartFilters + Bricks Builder If you've ever tried to let users filter and sort a post listing by a numeric custom field β€” say, a product spec, a rating, or a measurement β€” you've probably hit the wall where JetSmartFilters (JSF) and Bricks Builder don't quite connect out of the box. This post documents exactly how to wire them together: a radio filter that, when clicked, filters out posts missing that field and sorts the remaining results by that field's numeric value in descending order. The Goal A sidebar radio list of custom field names (e.g. "Weight", "Length", "Rating").…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More