Skip to content

Instantly share code, notes, and snippets.

@amanhstu
Created November 30, 2016 18:56
Show Gist options
  • Save amanhstu/780b257784b57359cb61ecc2e032487e to your computer and use it in GitHub Desktop.
Save amanhstu/780b257784b57359cb61ecc2e032487e to your computer and use it in GitHub Desktop.
<?php// 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 foundendif;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment