Search
Generic filters
Search
Generic filters

ACF Gallery Field Addon 2.1.0

ACF PRO includes extra fields & features to better develop websites including repeatable fields, page building tools, media galleries, custom options pages and more.

Advanced Custom Fields Gallery Field Addon

Gallery Field Addon

The gallery field 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.

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; ?>

See more examples

Installation

ACF PRO

The Gallery Field can be installed by purchasing a license for ACF PRO. On payment, you will receive a receipt from ACF and a user account allowing access to your downloads. Once ACF PRO is installed, enter your license key to enable plugin updates.

Plugin

The Gallery Field may also be installed by purchasing a license for this add-on. On payment, you will receive a receipt from ACF and a user account allowing access to your downloads. Once the add-on is installed (requires the free version of ACF to also be installed) you will not need to enter any license key information.

Smarter, faster and more refined.

The next generation of ACF is now available!

ACF PRO combines the feature packed ACF version 5 plugin plus all 4 premium add-ons together in the most powerful and attractive version of Advanced Custom Fields ever!

Advanced Custom Fields Gallery Field Addon
WordPress.com

Category:

Version: 2.1.0

License: GPL

Updated: August 26, 2019

JoinBooksCub.com

You might like these