When using the original code proposed by the autor, I always got an empty array of images. That’s because the post id is wrong.
To fix this, replace
$images = acf_photo_gallery(‘field_name’, $post->ID);
$images = acf_photo_gallery(‘field_name’, get_the_id());
Hope this helps.
- The topic ‘For those having problems in Elementor’ is closed to new replies.