Advanced Custom Fields (ACF) Repeater get image URL

Last updated on | 3 replies

To get the image URL for an image field type in Advanced Custom Fields (ACF) Repeater Field

<?php if( have_rows('repeater_field_name') ): ?>

	<?php while( have_rows('repeater_field_name') ): the_row(); 

		// vars
		$image = get_sub_field('image');

		<img src="<?php echo $image['url']; ?>" />

	<?php endwhile; ?>

<?php endif; ?>

Let me know if this helped. Follow me on Twitter, Facebook and YouTube, or 🍊 buy me a smoothie.

3 replies

Leave a reply

Your email address will not be published. Required fields are marked *