I am trying to output an image from a repeater inside of a group in Advanced Custom Fields but I can't get the image URL. The group is called 'Homepage' and the repeater is called 'Slideshow' with a field of 'background_image'.
Please see below code.
$rows = get_field('slideshow');
if($rows) {
$image = get_field('background_image');
$size = 'full';
foreach($rows as $row) {
?>
<li class="swiper-slide">
<div class="bg parallax2" data-speed='.5' style='background-image: url("<?php echo $image['url']; ?>")'></div>
</li>
<?php
}
}
?>
The background-image URL is blank.