• WP Migrate
  • WP Offload Media
  • WP Offload SES
  • About
  • Podcast
  • Advanced Custom Fields

  • Documentation
  • PRO
  • Blog
  • Support
  • Account
  • Purchase
  • WP Migrate
  • WP Offload Media
  • WP Offload SES

Add-ons

The Gallery Field

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 is no longer available as a separate plugin.

License Options

The Gallery Field add-on is available within ACF PRO. It is no longer available as a plugin.

ACF PRO

ACF PRO is an all in one plugin containing ACF, the Repeater field, the Gallery field, the Flexible Content field and the Options page!

Price: $49 - $249

Compatible ACF v6

Updates unlimited

Get ACF PRO

Plugin

Premium add-on plugins have been replaced by ACF PRO. The old plugins are compatible with the free version of ACF 5, but will not receive new updates.

ACF PRO

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!

Learn more about ACF PRO

About

  • PRO
  • Blog
  • Account

Help

  • Docs
  • FAQs
  • Forums
  • Contact
  • Changelog

Community

  • WordPress
  • Github
  • Twitter
  • AwesomeACF

Products

  • WP Migrate
  • WP Offload Media
  • WP Offload SES

© 2023 Delicious Brains Inc. All rights reserved.

Privacy Policy | Terms and Conditions

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.

Got it