For Displaying active class in ACF Repeater
If you want to give a class like active or anything in the first item of the ACF Repeater loop, you can use the below code.
<ul> <?php if( have_rows('repeater-name') ): $count = 0; while ( have_rows('repeater-name') ) : the_row(); ?> <li <?php if (!$count) { ?> class="active"<?php } ?>> <?php the_sub_field('field_name'); ?> </li> <?php $count++; endwhile; endif; ?> </ul>