Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jamiemitchell/f98ef8d508722504a6304d8676d4a0bf to your computer and use it in GitHub Desktop.
Save jamiemitchell/f98ef8d508722504a6304d8676d4a0bf to your computer and use it in GitHub Desktop.
ACF: Repeater with Flexslider
<?php if(get_field('repeater_field_name')): ?>
<div class="flexslider">
<ul class="slides">
<?php while(has_sub_field('repeater_field_name')): ?>
<li>
<img src="<?php the_sub_field('sub_field'); ?>" />
</li>
<?php endwhile; ?>
</ul>
</div>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment