• Advanced Custom Fields

  • PRO
  • Documentation
  • Blog
  • Support
  • Account
  • Purchase
  • Download

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

Sign up for the latest Advanced Custom Fields news, updates, and developer tutorials

Build smarter, faster, better with ACF®

About

  • PRO
  • About Us
  • Blog
  • Account
  • Changelog
  • Status

Help

  • Docs
  • FAQs
  • Forums
  • Contact
  • Feedback
  • Security

Community

  • Download ACF
  • GitHub
  • ACF Chat Fridays
  • Twitter

Products

  • WP Engine Hosting
  • WP Migrate
  • WP Offload Media
  • WP Offload SES

© 2025 WPEngine, Inc. All rights reserved.

Privacy Policy | Terms and Conditions

1WP Engine is a proud member and supporter of the community of WordPress® users. The WordPress® trademarks are the intellectual property of the WordPress Foundation, and the Woo® and WooCommerce® trademarks are the intellectual property of WooCommerce, Inc. Uses of the WordPress®, Woo®, and WooCommerce® names in this website are for identification purposes only and do not imply an endorsement by WordPress Foundation or WooCommerce, Inc. WP Engine is not endorsed or owned by, or affiliated with, the WordPress Foundation or WooCommerce, Inc.

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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.

Got it