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.

  • Hi @Yashi

    The gallery field will return an array of images, correct?
    Knowing this, you can simply interact with the first element in the array like so:

    
    $images = get_field...
    $image_1 = $images[0];
    

    Good luck.

    Thanks
    E