I have a repeater and two divs, first div contains titles. second slider images.
Everything working but images sometimes not loading
Is there any right way to achive this
My code
<div class=”bl-4-border”>
<div class=”sl-pr-nav”>
<?php $i = -1;?>
<?php while( have_rows(‘слайдер_маршрута’) ): the_row(); $i++;?>
<span data-nomer=”<?php echo $i;?>”><?php the_sub_field(‘заголовок_слайдера_маршрута’);?></span>
<?php endwhile; reset_rows()?>
</div>
<div id=”slider-primer”>
<?php while( have_rows(‘слайдер_маршрута’) ): the_row(); ?>
<?php endwhile; ?>
</div>
</div>