acf gallery

Solutions on MaxInterview for acf gallery by the best coders in the world

showing results for - "acf gallery"
Hannes
27 Sep 2019
1<?php 
2$images = get_field('gallery');
3
4if( $images ): ?>
5    <ul>
6        <?php foreach( $images as $image ): ?>
7            <li>
8                <a href="<?php echo $image['url']; ?>">
9                     <img src="<?php echo $image['sizes']['thumbnail']; ?>" alt="<?php echo $image['alt']; ?>" />
10                </a>
11                <p><?php echo $image['caption']; ?></p>
12            </li>
13        <?php endforeach; ?>
14    </ul>
15<?php endif; ?>
Mia
09 Jul 2020
1<?php 
2$images = get_field('gallery');
3$size = 'full'; // (thumbnail, medium, large, full or custom size)
4if( $images ): ?>
5    <ul>
6        <?php foreach( $images as $image_id ): ?>
7            <li>
8                <?php echo wp_get_attachment_image( $image_id, $size ); ?>
9            </li>
10        <?php endforeach; ?>
11    </ul>
12<?php endif; ?>
queries leading to this page
acf gallery freacf gallery field grid data action 3d 22zoom 22gallery acfget gallery acfacf gallery proacf gallery viewerdisplay acf galleryacf display gallery fieldacf free galleryacf gallery specific number of imagehow to use gallery acfaccess an image from adavcendc ustomf field galleryadbacenuc custom field gllary sizeacf gallery shortcode pluginimage gallery in acfgallery image with acfgallery field for acfacf gallery freeafc galleryacf create gallerycustom fields wordpress galleryadvanced custom fields galleryacf gallery plugin get multiple image fields acf wordpressacf gallery tutorialacf how to select image from gallery wordpress advanced custom fields galleryimages gallery acfacf gallery field add acf image gallery loopacf gslleryacf gallery field returns array textacf display gallery imagesdisplay acf gallery shortcode pluginacf gallerygallery acf phpthe field gallery wordpressgallery using acfacf gallery return one imageacf gallery with fieldadvanced custom fields select multiple imagesacf get galleryacf gallery loopdisplay gallery in acfgallery custom field wordpressacf gallery visual composercustom fields galleryacf group galleryacf post gallerycustom field multiple images wordpressacf pro gallery fieldgallery advanced custom fieldsacf image galleryacf gallery fieldimage gallery acfacf gallery and visual composeracf gallery work aroundgallery in acfacf gallery add ons the gallery field 5ccustom fields multiple images gallery in acfadd gallery image additional fieldsacf gallery limitedgallery acf fieldacf photo galleryadvanced custom fields image gallery not show location post typeacf photo gallery fieldacf gallery field grid data action 3d 22zoom 22 php wpacf gallery image titleacf imageacf gallery