Nice one mate, glad you got it sorted!
Ignore the above. I had tired eyes and didn’t see the rest of the output on the page. The nested repeater loop works!
Ok, so I’ve managed to get the values appearing with the following!
<?php while ( have_rows('listings_block', 28) ) : the_row(); ?>
<?php while( have_rows('listings_row', 28)): the_row(); ?>
<pre><?php the_sub_field('title'); ?></pre>
<?php endwhile; ?>
<?php endwhile; ?>
It returns the first value within the nested repeater, but it doesn’t loop through the nested rows for some reason. Any ideas as to how I could get the nested repeater looping through all of the row values?
Hey mate, thanks for your help!
I’ve tried, but still no luck in returning any values. I’ve tried both of these variations:
<?php while( have_rows('listings_row', 28)): the_row(); ?>
<pre><?php the_sub_field('title', 28); ?></pre>
<?php endwhile; ?>
<?php while( have_rows('listings_row', 28)): the_row(); ?>
<?php $some_var = get_sub_field('title', 28); ?>
<pre><?php echo $some_var; ?></pre>
<?php endwhile; ?>
Just to be clear, I’m attempting to get the values within the nested repeater. Any ideas? I’m scratching my head with this one :\