$featured_img_urlfull = get_the_post_thumbnail_url(get_the_ID(),'full' );
$postid = get_the_ID(); ?>
$images = acf_photo_gallery('image_gallery',$postid );
//Check if return array has anything in it
if( count($images) ):
//Cool, we got some data so now let's loop over it
$k=1;
foreach($images as $image) {
$id = $image['id']; // The attachment id of the media
$title = $image['title']; //The title
$caption= $image['caption']; //The caption
$full_image_url= $image['full_image_url']; //Full size image url
// $full_image_url = acf_photo_gallery_resize_image($full_image_url, 262, 160); //Resized size to 262px width by 160px height image url
$thumbnail_image_url= $image['thumbnail_image_url']; //Get the thumbnail size image url 150px by 150px
$url= $image['url']; //Goto any link when clicked
$target= $image['target']; //Open normal or new tab
$alt = get_field('photo_gallery_alt', $id); //Get the alt which is a extra field (See below how to add extra fields)
$class = get_field('photo_gallery_class', $id); //Get the class which is a extra field (See below how to add extra fields)
?>
} endif; ?>
if( count($images) ):
foreach($images as $image) {
$full_image_url= $image['full_image_url']; //Full size image url ?>
} endif ; ?>