22nd Mar '23
/
19 comments

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

Get access to all 612 Bricks code tutorials with BricksLabs Pro

Related Tutorials..

Pro
Outputting Only the First ACF Repeater Row in Bricks

Outputting Only the First ACF Repeater Row in Bricks

Updated on 12 Dec 2023 In the Bricks Facebook group a user asks: How can I display only the first entry from an ACF repeater?…
Pro
ACF Relationship Select Filter in Bricks

ACF Relationship Select Filter in Bricks

In the BricksLabs Facebook group, a user asks: I'm learning about ACF relationships and attempting to output a list of posts on any given page,…
Categories: