Created
December 12, 2013 10:41
-
-
Save dompascal/7926110 to your computer and use it in GitHub Desktop.
WP - ACF Repeater Loop
This file contains hidden or 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('slideshow_images')): ?> | |
<?php while(the_repeater_field('slideshow_images')): ?> | |
<?php $image = wp_get_attachment_image_src(get_sub_field('image_file'), 'full'); ?> | |
<img src="<?php echo $image[0]; ?>" alt="" /> | |
<?php endwhile; ?> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment