if( have_rows('parent_field') ): while ( have_rows('parent_field') ) : the_row(); $sub_value = get_sub_field('sub_field'); // Do something... endwhile; else : // no rows found endif;