For those having problems in Elementor
-
Hi,
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);
with
$images = acf_photo_gallery(‘field_name’, get_the_id());
Hope this helps.
Patrick
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘For those having problems in Elementor’ is closed to new replies.