Skip to content

Instantly share code, notes, and snippets.

Embed
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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.