Skip to content

Instantly share code, notes, and snippets.

Embed
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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.