Created
August 23, 2016 08:56
-
-
Save daveloodts/958c427d7e789be37c783d617890355f to your computer and use it in GitHub Desktop.
acf repeat in repeat
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
// check if the repeater field has rows of data | |
if( have_rows('erkenningen') ): | |
// loop through the rows of data | |
while ( have_rows('erkenningen') ) : the_row(); ?> | |
<div class="ersegment row"> | |
<div class="small-12 large-12 medium-6 columns"> | |
<h3><?php the_sub_field('titel_erkenningen'); ?></h3> | |
<?php while ( have_rows('soorten_erkenning_categorie') ) : the_row(); ?> | |
<ul class='erkenninglist'> | |
<li class='w30'><?php the_sub_field('categorie'); ?></li> | |
<li class='w70'><?php the_sub_field('omschrijving'); ?></li> | |
</ul> | |
<?php endwhile; ?> | |
</div> | |
</div> | |
<?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