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.
Sridhar Katakam is a Bricks enthusiast. He likes helping others by researching and solving WordPress-related problems and building websites.
Get access to all 525 Bricks code tutorials with BricksLabs Pro
Related Tutorials..
Modifying ACF Field Value Before It Is Output
Consider the scenario where a Page has a "Page Fields" field group created with ACF Pro like this: Field name: scientific_coordinators (type Repeater)|__ Sub field…
This Pro tutorial shows how bricks/active_templates filter can be used to programmatically assign a Bricks template to all singular pages (of any post type) that…
This Pro tutorial shows how bricks/element/settings filter can be used to automatically replace the images of an Image Gallery element in Bricks builder with the…