Home Forums Bug Reports Image in repeater issue Reply To: Image in repeater issue

  • 	if (have_rows("sidebar_bovenste_banners", $page_id)) {
    	<ul id="side-bar-top" class="banners-slider">
    			while (have_rows("sidebar_bovenste_banners", $page_id)) { the_row();
    				$image = get_sub_field("banner");
    				$link = get_sub_field("link");
    					<a href="<?php echo $link ?>" target="_blank">
    						<img src="<?php echo $image; ?>" alt="">
    <?php } ?>

    This would be the working solution, outputing the image URL instead of the array. Otherwhise I’d echo the image as $image[‘sizes’][‘somesize’] or print_r($image) to see the array. But it will return some random int.