The Advanced Custom Fields Gallery Field Addon provides a simple and intuitive interface for managing a collection of images
Multiple images can be added, edited and sorted with ease!
Template usage
The gallery field will return an array of image data. Each image is itself an array containing information such as title, alt, description, url and more.
The basic list of images
This example will loop over the selected images and display a list of thumbnails which each link to the full size image
<?php
$images = get_field('gallery');
if( $images ): ?>
<ul>
<?php foreach( $images as $image ): ?>
<li>
<a href="<?php echo $image['url']; ?>">
<img src="<?php echo $image['sizes']['thumbnail']; ?>" alt="<?php echo $image['alt']; ?>" />
</a>
<p><?php echo $image['caption']; ?></p>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
Installation
Advanced Custom Fields PRO
The Gallery Field can be installed by purchasing a license for Advanced Custom Fields PRO. On payment, you will receive a receipt from Advanced Custom Fields PRO and a user account allowing access to your downloads. Once Advanced Custom Fields PRO is installed, enter your license key to enable plugin updates.
Reviews
There are no reviews yet.