gallery advanced custom fields

Solutions on MaxInterview for gallery advanced custom fields by the best coders in the world

showing results for - "gallery advanced custom fields"
Debora
16 Jan 2018
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; ?>
Lisa
15 Jan 2019
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 and visual composeracf gslleryacf gallery plugin acf gallery field grid data action 3d 22zoom 22how to use gallery acfcustom fields multiple imagescustom fields galleryget multiple image fields acf wordpressadvanced custom fields image gallery not show location post typecustom fields wordpress galleryimages gallery acfacf gallery shortcode pluginacf gallery imageacf make gallery with freegallery image with acfacf gallery freacf gallery with fieldgallery advanced custom fieldsgallery acfacf create galleryafc gallery gallery in acfimage gallery acfacf gallery specific number of imageacf gallery vieweracf display gallery imagesacf group galleryacf gallery limitedacf gallery field returns array textacf gallery field grid data action 3d 22zoom 22 php wpadbacenuc custom field gllary sizeadvanced custom fields galleryacf display gallery fieldacf get gallerycustom field multiple images wordpressadd gallery image additional fieldsacf gallery add ons the gallery field 5cwordpress advanced custom fields galleryacf gallery image titleadvanced custom fields select multiple imagesgallery custom field wordpressgallery acf phpimage gallery in acfgallery in acfacf photo galleryacf gallerydisplay gallery in acfthe field gallery wordpressacf gallery videosacf gallery tutorialgallery using acfacf gallery fieldacf image galleryacf free galleryacf imageacf gallery freeacf gallery return one imageacf how to select image from gallery get gallery acfacf photo gallery fieldacf post galleryaccess an image from adavcendc ustomf field galleryacf gallery field add gallery field for acfacf gallery loopacf pro gallery fieldacf gallery proacf image gallery loopacf gallery work aroundacf gallery visual composerdisplay acf gallery shortcode plugindisplay acf gallerygallery acf fieldgallery advanced custom fields