'.$title.'
'; if( have_rows('flex') ): while ( have_rows('flex') ) : the_row(); if( get_row_layout() == 'images_layout' ): if( have_rows('image_repeater') ): echo '- ';
while ( have_rows('image_repeater') ) : the_row();
$image = get_sub_field('image');
$caption = get_sub_field('caption');
echo '
- '; echo ''; echo ' '; endwhile; echo ' '; echo '
'.$index.'
'; elseif( get_row_layout() == 'text_layout' ): $text = get_sub_field('text'); echo ''.$text.'
'; endif; endwhile; endif; echo '