Skip to content

Instantly share code, notes, and snippets.

@digiltd
Created May 11, 2015 21:54
Show Gist options
  • Select an option

  • Save digiltd/8e12d944b56056f492c1 to your computer and use it in GitHub Desktop.

Select an option

Save digiltd/8e12d944b56056f492c1 to your computer and use it in GitHub Desktop.
acf repeater field
// check if the repeater field has rows of data
if( have_rows('repeater_field_name') ):
// loop through the rows of data
while ( have_rows('repeater_field_name') ) : the_row();
// display a sub field value
the_sub_field('sub_field_name');
endwhile;
else :
// no rows found
endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment