Support

Account

Home Forums Add-ons Gallery Field How To display only one image in front end. Reply To: How To display only one image in front end.

  • i found the solution and i resolved it thanks…. your example work for me

    <?php 
    
    $images = get_field('gallery_bucket'); 
    $image_1 = $images[0]; 
    
    ?>
    
    <img src="<?php echo $image_1['sizes']['gallery-thumb']; ?>" alt="<?php echo $image_1['alt']; ?>" />