I’ve looked on the Working with Nested Repeaters page, but can’t see any mention of how to achieve this.
Basically, I have multiple child Repeater Field’s (wash, bleach …) inside a parent Repeater Field (care_labels). I’m trying to loop through this parent repeater and retrieve all the child repeater fields and their values, all in a neat unordered list.
So far my code looks like this:
<p>Care Labels:</p>
<ul>
<?php if( have_rows('care_labels') ): ?>
<?php while( have_rows('care_labels') ): the_row();
while( have_rows('wash') ): the_row(); ?>
<li><?php echo get_sub_field('instructions') . '&' . get_sub_field('finish'); ?></li>
<?php endwhile; ?>
<?php endwhile; ?>
</ul>
<?php endif; ?>
The problem I’m having is my while loop is targeting the ‘wash’ repeater. Now I could repeat that while loop five times, but that seems like an awful lot of bloat. I was wondering if anyone could point me in the direction of a more elegant solution?
I was thinking of storing my child repeater field names in an array, but it’s working out how to loop through these with the have_rows function.
Here are my fields in action, if my above explanation sounds too confusing.

Any help is appreciated. Thanks in advance!