I have a site builder created using the flexible content field. I would like to use this field in other groups. When I’m cloning this field in other groups it’s possible to pull out an array with e.g. get_fields(‘sections’) – unfortunately, as you can see, this array is nested, which makes it impossible to loop it with
while ( have_rows( ‘sections’ ) ): the_row();
Is there any possibility to use this loop? I’d like to be able to extract the fields of individual sections using get_sub_field(), using the foreach loop on array will force me to rework all my sections. Is there a workaround? I would be grateful for any suggestions.