Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
ACF Example 4
<div class="swiper-container">
<div class="swiper-wrapper">
// 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'); ?>">
<?php endwhile; ?>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment