Use ACF Repeater and Flexible Content fields together

The Advanced Custom Fields (ACF) Repeater field and Flexible Content field are supported via field connection shortcodes.

You can combine the two shortcodes if you use a Repeater field inside a Flexible Content field or a Flexible Content field inside a Repeater field. You can use the shortcode inside any module that supports HTML such as a Text Editor or HTML module. 

Repeater inside Flexible Content example

Here's an example of the Repeater field shortcode, with a description below.

  • my_flexible_content is the name of your Flexible Content field.
  • layout_1 is the name of your Flexible Content layout.
  • layout_1_text and layout_1_img are the names of your flexible content fields.
  • repeater is the name of your Repeater field.
  • text-repeat and image-repeat are the names of your repeater field sub-fields.

Flexible Content inside Repeater example

  • repeater is the name of your Repeater field.
  • text-repeat and image-repeat are the names of your repeater field sub-fields.
  • my_flexible_content is the name of your Flexible Content field.
  • layout_1 is the name of your Flexible Content layout.
  • layout_1_text and layout_1_img are the names of your flexible content sub-fields.