Last active
January 30, 2019 07:08
-
-
Save ashby/11442464 to your computer and use it in GitHub Desktop.
ACF: Repeater with Flexslider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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