Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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