Home Forums General Issues Сhecking if this field is available


Сhecking if this field is available

  • 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.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.