How to use shortcode for an ACF repeater field

Posted on: August 11th, 2023
By: Tadeo Lemus

You can read the support forum here.

Here’s the example given:

[acf field="{$repeater_name}_{$row}_{$sub_field_name}"]

Here’s an example of it being actually used:

[acf field="builder_0_content_group]

The index of the loop starts at 0 as usual.

However, in my specific case it didn’t display properly because it’s a group so it’s an array and the shortcode can only display one value.

p.s. That’s why I’m looking forward to fully making the switch from ACF to building my own Gutenberg blocks.

Have any questions or comments? Write them below!

Leave a comment

Your email address will not be published. Required fields are marked *