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?

This can be done using the bricks/query/result filter through which all query types go through. This enables us to modify the array that the loop iterates through and restrict it to just the first one, in this case.

Add the following in child theme's functions.php or a code snippets plugin:

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