Created
August 7, 2014 14:13
-
-
Save ckoerner/09ea771030e765345314 to your computer and use it in GitHub Desktop.
ACF Example 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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