Hi all,
First post here but I just had to post this as I’m fairly new to PHP (so it’s different syntax and lack of ‘real’ errors is still throwing me) and I had thought that the ACF tutorials are solidly correct and my code must be wrong: BUT NO!
from URL: http://www.advancedcustomfields.com/resources/how-to-sorting-a-repeater-field/
<?php foreach( $repeater as $i => $row ): ?>
<li><?php echo $row['id']; ?>. <?php echo $row['name']; ?></li>
<?php endwhile; ?>
Shouldn’t that be a <?php endforeach; ?>!!!!!!!
Cheers
Hi @buswell
Thanks for the typo report!
I’ll have that fixed in a sec.
Cheers
E