I have a loop on the output of “gallery-image-” fields. But it outputs empty field values. How can I solve this?
<div class="slider-for">
<?for ($i=1; $i <= 10; $i++) {
$image = get_field('gallery-image-'.$i);
if ($image)
$slider_nav_HTML = '<div class="slider-item"><img src="'.$image.'" width="60" height="60" /></div>';
?>
<div><img />" width="100%"></div>
<?}?>
It doesn’t look like you are calling for the field group properly. Are you trying to access a repeater field? Your question needs more information.