How to Order Posts by Post Meta in Bricks

Updated on 4 Feb 2024

This Pro tutorial provides the steps to show posts marked as featured at the top and then the other posts below them (sorted either by title or date) in Bricks.

Testimonial posts list:

On frontend:

Step 1

Use your favorite custom fields plugin to set up a custom field whose value gets saved as 0 or 1. This could be ACF's True / False or Checkbox or Meta Box's Switch field.

We used a Meta Box Switch-type field in our test site.

Step 2

Edit your template/Page with Bricks and add a Section.

Inside the Section's Container, add a Posts element or a query loop-enabled Block.

Edit the query and select your post type if needed.

Next, we shall

This is a BricksLabs Pro tutorial.

For full access login below or create your BricksLabs Pro account

Instant access to 390+ Bricks code tutorials with BricksLabs Pro