Skip to content

Instantly share code, notes, and snippets.

@ckoerner
Created August 7, 2014 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ckoerner/09ea771030e765345314 to your computer and use it in GitHub Desktop.
Save ckoerner/09ea771030e765345314 to your computer and use it in GitHub Desktop.
ACF Example 3
<h2>NOSH</h2>
<?php
// check if the repeater field has rows of data
if( have_rows('app') ):
// loop through the rows of data
while ( have_rows('app') ) : the_row(); ?>
<p><strong><?php the_sub_field('item'); ?></strong> <strong>{<?php the_sub_field('price');?>}</strong><br/>
<em><?php the_sub_field('description'); ?></em>
</p>
<?php endwhile;
else :
// no rows found
endif;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment