Created
September 19, 2016 02:20
-
-
Save awakekat/f2a5a9279df1e1c63f22708e870dee5e to your computer and use it in GitHub Desktop.
Advanced Custom Fields - Nested Repeater
This file contains hidden or 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
<?php if( have_rows('grade_repeat') ): ?> | |
<?php while ( have_rows('grade_repeat') ) : the_row(); ?> | |
<h3><?php the_sub_field('class_level'); ?></h3> | |
<?php if( have_rows('class_repeater') ): ?> | |
<?php while( have_rows('class_repeater') ): the_row(); ?> | |
<ul> | |
<li><?php the_sub_field('class_date'); ?> - <?php the_sub_field('class_name'); ?></li> | |
</ul> | |
<?php endwhile; ?> | |
<?php endif; ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment