Skip to content

Instantly share code, notes, and snippets.

@marisqaporter
Created March 4, 2016 17:36
Show Gist options
  • Save marisqaporter/b11677c765b76a2c9e0a to your computer and use it in GitHub Desktop.
Save marisqaporter/b11677c765b76a2c9e0a to your computer and use it in GitHub Desktop.
if you have rows
if( have_rows('parent_field') ):
while ( have_rows('parent_field') ) : the_row();
// Your loop code
the_sub_field('sub_field');
endwhile;
else :
// no rows found
endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment