ACF Repeater Sub Field Values as Tabs in Bricks

Bricks’ query loop supports ACF Repeaters and Meta Box Groups out of the box besides posts, users and terms.

This tutorial shows how we can output the values of sub fields of a ACF Repeater as tab titles and content in Bricks without writing a single line of code, thanks to its nestable Tabs element.

ACF Field Group:

Repeater being populated for a specific Page:

Tabs on the front end:

Create a Tabs (Nestable) element inside a Section’s Container.

Delete the second Div under the “Tab menu” element.

Delete the second Pane under the “Content” element.

Select the Div under the Tab menu and enable query loop.

Click the query icon and set the query type to your ACF Repeater.

Change the text of the Basic Text element inside to your Title sub field using the dynamic data (bolt) button.

It should look like this:

{acf_features_title}

Select the Pane under the Content and enable query loop.

Click the query icon and set the query type to your ACF Repeater.

Change the text of the Rich Text element inside to your Title sub field.

It should look like this:

{acf_features_blurb}

JSON export of the Section.

Instant access to 390+ Bricks code tutorials with BricksLabs Pro

Leave the first comment