if( get_field(‘gallery’) ):
echo ‘<h5>PRODUCT IMAGES</h5><br />’;
endif;
if( get_field(‘gallery’) ):
$image_ids = get_field(‘gallery’, false, false);
$shortcode = ‘
[gallery link="file" ids="' . implode(',', $image_ids) . '"]
‘;
echo do_shortcode( $shortcode );
endif;