if we are lucky it works when you change this line <?php $i++; } endforeach; ?>
the counter should only go up when image is featured,
thats why it should be inside the featured loop and not outside like you have it now
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users