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 610 Bricks code tutorials with BricksLabs Pro

Related Tutorials..

Term-specific single post template in Bricks

Term-specific single post template in Bricks

Updated on 25 Jun 2025 In Reddit a user asks: Template conditional logic to exclude pages with a particular taxonomy term? I can't figure out…
How to create filters with IsotopeJS in Bricks (Part 2): Dynamic Image Galleries

How to create filters with IsotopeJS in Bricks (Part 2): Dynamic Image Galleries

This tutorial series will review how to create a dynamic filterable image gallery using the IsotopeJS library‘s features in Bricks. Requirements Create a custom taxonomy for your…
Pro
Filtering a Bricks Terms query on Term archive pages

Filtering a Bricks Terms query on Term archive pages

On product category archives, how to show product type names but only those that the current product category has.
Pro
Previous Two Posts in Bricks Query Loop

Previous Two Posts in Bricks Query Loop

This Pro tutorial shows how we can modify the parameters of a Bricks query to limit the posts to the previous two whilst cycling to…