Invalid Argument foreach() – ACF Gallery
-
I’m getting the warning below. Can anyone kindly give me some help.
: Invalid argument supplied foreach() in
…/html/wp-content/plugins/anywhere-elementor-pro/includes/modules/acf-gallery/skins/skin-base.php
on line 1447The line after the commented would be line 1447.
<div <?php echo $this->parent->get_render_attribute_string('grid-wrapper'); ?>> <div class="ae-grid"> <?php // THIS IS LINE 1447 if(!empty($images)) { foreach ($images as $image) { if ($image_size == 'full') { $src = $image['url']; } else { $src = $image['sizes'][$image_size]; } ?> <figure class="ae-grid-item"> <div <?php echo $this->parent->get_render_attribute_string('grid_item_inner'); ?>> <?php if($this->get_instance_value('enable_image_ratio') == 'yes') { ?> <div class="ae-acf-image"> <?php } ?> <a href="<?php echo $image['url']; ?>" <?php echo $this->parent->get_render_attribute_string('link'); ?>> <img src="<?php echo $src; ?>"/> <div class="ae-grid-overlay <?php echo $animation ?>"> <div class="ae-grid-overlay-inner"> <div class="ae-icon-wrapper"> <?php if (!empty($icon)) { ?> <div class="ae-overlay-icon"><i class="<?php echo $icon ?>"> </i></div> <?php } ?> </div> <?php if (!empty($image['caption']) && $caption == 'yes') { ?> <div class="ae-overlay-caption"><?php echo $image['caption']; ?></div> <?php } ?> </div> </div> </a> <?php if($this->get_instance_value('enable_image_ratio') == 'yes') { ?> </div> <?php } ?> </div> </figure> <?php } }?> </div> </div> <?php }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Invalid Argument foreach() – ACF Gallery’ is closed to new replies.