Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
ACF Example 4
<div class="swiper-container">
<div class="swiper-wrapper">
<?php
// check if the repeater field has rows of data
if( have_rows('gallery_images') ):
// loop through the rows of data
while ( have_rows('gallery_images') ) : the_row(); ?>
<!--First Slide-->
<div class="swiper-slide">
<img class="img-responsive carousel-image" src="<?php the_sub_field('images'); ?>">
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment