ACF v3 to v4 repeater field update
// v3 deprecated
<?php while(the_repeater_field('my-repeater')): ?>
<?php $checkIfEmpty = get_sub_field('link'); ?>
<?php endwhile; ?>
<?php if ($checkIfEmpty != '') { ?>
<div>
<ul>
<?php while(the_repeater_field('my-repeater')): ?>
<li>
<a href="<?php the_sub_field('link'); ?>">
<?php the_sub_field('title'); ?>
</a>
<span><?php the_sub_field('description'); ?></span>
</li>
<?php endwhile; ?>
</ul>
</div>
<?php } ?>
// v4 attempted update
<?php if( have_rows('my-repeater') ): ?>
<div>
<ul>
<?php while( have_rows('my-repeater') ): the_row();
$link = get_sub_field('link');
?>
<li>
<a href="<?php the_sub_field('link'); ?>"><?php the_sub_field('title'); ?></a> <span><?php the_sub_field('description'); ?></span>
</li>
<?php endwhile; ?>
</ul>
</div>
<?php endif; ?>