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.

p.s. I increased my AdSense revenue by 200% using AI 🤖. Read my Ezoic review to find out how.

3 replies

Leave a reply

Your email address will not be published.