Posts Published in the Last x Days in Bricks

Updated on 1 Feb 2024

This Pro tutorial shows how to limit the posts output by either the Posts element or a Query Loop in Bricks to those published in the last 14 days.

Query Loop

Enable Query editor (PHP) and paste:

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