BLACK FRIDAY
Save 59% on PageForge Annual $191/year $485/year
Claim 59% Off →
ACF Photo Gallery Field icon
Maintained Tested up to 6.9.9 #676 most installed plugin #5 in acf

ACF Photo Gallery Field

A lightweight extension of Advanced Custom Field (ACF) that adds Photo Gallery field to any post/pages on your WordPress website.

Active installs60K+50K+ tier
Downloads · 30d3.2K▼ -8.1% vs prev. 30d
Rating4/529 reviews
Health score47/100Fair
All-time downloads662.2KSince Jul 2016
Support resolved0 / 10% in last 2 months
RequiresWP 5.8PHP 7.0+
Overall rank#676of 69,606 plugins
Our verdict

Use with caution

ACF Photo Gallery Field works, but test it on a staging site before relying on it in 2026. It runs on 60K+ sites, is rated 4/5 and was last updated 9 months ago, and scores 47/100 on our health check.

  • Proven at scale on 60K+ active sites
  • Only tested up to WordPress 6.9 (latest is 7.1)

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

4284126Jun 30Aug 13Sep 27
Yesterday90
Daily average (1y)210
Peak day9,962Dec 27, 2025
Last 12 months76.3K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where ACF Photo Gallery Field stands today
Overall popularity #676 of 69,606 WordPress.org plugins Top 0.97%
50K+ installs tier 210 of 323
Next tier: 100K+ installs
Acf #5 of 350 plugins → Custom #3 of 308 plugins → Fields #6 of 78 plugins → Gallery #12 of 749 plugins → Photo #2 of 151 plugins →

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
acf #23 1,563 Best acf plugins →
custom >100 10,000 Best custom plugins →
fields #64 10,000 Best fields plugins →
gallery #61 4,166 Best gallery plugins →
photo #15 3,217 Best photo plugins →

Version adoption

Share of active sites per release.

  • 3.157.2%
  • 3.022.6%
  • 1.65.5%
  • Other14.8%

Rating breakdown

★★★★★★★★★★ 4 from 29 reviews

  • 5★69.0%
  • 4★3.4%
  • 3★3.4%
  • 2★3.4%
  • 1★20.7%

About ACF Photo Gallery Field

From the official readme · v3.1

Description

Important Notice for New Users of ACF Photo Gallery Field

If you are installing the ACF Photo Gallery Field for the first time on your WordPress website, we’d like to inform you that this plugin will no longer be maintained as of October 2024. As an alternative, we have launched a new and improved plugin called ACF Galerie 4.

We encourage you to check out ACF Galerie 4 for enhanced features and ongoing support. ACF Galerie 4 includes a built-in migration tool that seamlessly transfers data from ACF Photo Gallery Field or ACF Gallery Pro to ACF Galerie 4. Learn more.

Thanks

A lightweight extension of Advanced Custom Field (ACF) that adds Photo Gallery field to any post/pages on your WordPress website.

  • Visually create your Fields
  • Add multiple photos and you can also modify title, caption and link to anything
  • Assign your fields to multiple edit pages (via custom location rules)
  • Easily load data through a simple and friendly API
  • Uses the native WordPress custom post type for ease of use and fast processing
  • Uses the native WordPress metadata for ease of use and fast processing
  • Supports WordPress classic and Gutenberg editor
  • RESTFul API

Donation

Navneil Naicker is the sole developer working on this free WordPress Plugin in his leisure time. He would like to integrate it with premium plugins like Elementor Pro and Advanced Custom Fields Pro. Please donate to support Navneil in continuing further development of this plugin. Click on the link “https://www.buymeacoffee.com/navzme” to donate.

Usage

acf_photo_gallery is a helper function that takes in ACF_FIELD_NAME and POST_ID will query the database and compile the images for you. The output of this function will be an array.

acf_photo_gallery(ACF_FIELD_NAME, POST_ID);

Example

The following example is using Twitter Bootstrap framework to layout. You can use any framework of your choice.

<?php
    //Get the images ids from the post_metadata
    $images = acf_photo_gallery('vacation_photos', $post->ID);
    //Check if return array has anything in it
    if( count($images) ):
        //Cool, we got some data so now let's loop over it
        foreach($images as $image):
            $id = $image['id']; // The attachment id of the media
            $title = $image['title']; //The title
            $caption= $image['caption']; //The caption
            $full_image_url= $image['full_image_url']; //Full size image url
            $full_image_url = acf_photo_gallery_resize_image($full_image_url, 262, 160); //Resized size to 262px width by 160px height image url
            $thumbnail_image_url= $image['thumbnail_image_url']; //Get the thumbnail size image url 150px by 150px
            $url= $image['url']; //Goto any link when clicked
            $target= $image['target']; //Open normal or new tab
            $alt = get_field('photo_gallery_alt', $id); //Get the alt which is a extra field (See below how to add extra fields)
            $class = get_field('photo_gallery_class', $id); //Get the class which is a extra field (See below how to add extra fields)
?>
<div class="col-xs-6 col-md-3">
    <div class="thumbnail">
        <?php if( !empty($url) ){ ?><a href="<?php echo $url; ?>" <?php echo ($target == 'true' )? 'target="_blank"': ''; ?>><?php } ?>
            <img src="<?php echo $full_image_url; ?>" alt="<?php echo $title; ?>" title="<?php echo $title; ?>">
        <?php if( !empty($url) ){ ?></a><?php } ?>
    </div>
</div>
<?php endforeach; endif; ?>

Add Extra Fields

To add extra fields add the following to your themes functions.php file.

//Create extra fields called Altnative Text and Status
function my_extra_gallery_fields( $args, $attachment_id, $acf_key ){
    $args['alt'] = array(
        'type' => 'text', 
        'label' => 'Altnative Text', 
        'name' => 'alt', 
        'value' => get_field($field . '_alt', $attachment_id)
    );
    $args['status'] = array(
        'type' => 'select', 
        'label' => 'Status', 
        'name' => 'status', 
        'value' => array(
            array(
                '1' => 'Active',
                 '2' => 'Inactive'
            ), 
            get_field($field . '_status', $attachment_id)
        )
    );
    return $args;
}
add_filter( 'acf_photo_gallery_image_fields', 'my_extra_gallery_fields', 10, 3 );

Supported field types:
* text, date, color, datetime-local, email, number, tel, time, url, week, range, checkbox, radio, textarea, select

How to get values of extra fields

You can use ACF helper function get_field

get_field('photo_gallery_alt', $id);
get_field('photo_gallery_class', $id);

Pull caption from attachment caption field

By default the caption is being pulled from description field. Add the following filter to your function.php to pull the caption from attachment caption field.

add_filter( 'acf_photo_gallery_caption_from_attachment', '__return_true' );

REST API

Send HTTP Request to URL to get JSON response of all posts

http://{domain}/wp-json/wp/v2/{POST_TYPE}/

Send HTTP Request to URL to get JSON response of specific post

http://{domain}/wp-json/wp/v2/{POST_TYPE}/{POST_ID}/

When you receive the response, see the ACF item which contains ACF photo gallery name and array of images.

Installation and basic usage tutorial

ACF Photo Gallery Field on WordPress Custom Post Type tutorial

How to use Elementor dynamic tags with ACF Photo Gallery Field plugin tutorial

Compatibility

This ACF field type is compatible with: ACF 4, 5 and 6

Issues

Just like any other WordPress plugin, this plugin can also cause issues with other themes and plugins. If you are facing issues making this plugin work on your WordPress site, please do ask for help in the support forum. This way we can help you out and prevent this issue from happening to someone else. If you want to talk to me directly, you can contact me via my website http://www.navz.me/

Installation

Important Notice for New Users of ACF Photo Gallery Field

If you are installing the ACF Photo Gallery Field for the first time on your WordPress website, we’d like to inform you that this plugin will no longer be maintained as of October 2024. As an alternative, we have launched a new and improved plugin called ACF Galerie 4.

We encourage you to check out ACF Galerie 4 for enhanced features and ongoing support.

Thanks

From your WordPress dashboard

  1. Visit Plugins > Add New
  2. Search for “ACF Photo Gallery Field”
  3. Install and Activate ACF Photo Gallery Field from your Plugins page
  4. Watch the tutorial to get started

Changelog

=3.1=
* [Fixed] WordPress security fix and plugin check fix.

=3.0=
* [Fixed] URL and target not saving into the database.

=2.9=
* [Fixed] On image edit, popup modal not accessible on Gutenberg editor.

=2.8=
* [Fixed] Undefined array key “nonce”.

=2.7=
* [Fixed] Tidy up few things.

=2.6=
* [Fixed] When click on “Add Images”, WordPress media library not opening.

=2.5=
* [Fixed] Elementor dynamic tag offset index
* [Added] fallback for Elementor dynamic tag for versions prior to 3.16

=2.4=
* [Fixed] Undefined array key “option” error

=2.3=
* [Fixed] renamed a function to avoid conflict.

=2.2=
* [Fixed] Elementor Pro dynamic tag fix. Thanks to GitHub @rloes for the fix.
* [Added] Donation request popup. People gonna hate me for this. Sorry.

=2.1=
* [Fixed] explode(): Passing null to parameter error
* [Fixed] /wp-json/ not showing gallery images on custom post type. Thanks to GitHub @nykula for the fix.

=2.0=
* [Removed] Removed functionality from profile
* [Removed] errors and deprecating warnings

=1.9=
* [Added] Donation link because I’m poor
* [Removed] errors and deprecating warnings

=1.8.1=
* [Updated] Renamed function from ‘my_profile_update’ to ‘apg_profile_update’
* [Bugfix] Backdrop not going away when the “Native” model is closed
* [Removed] SweetAlert and added native browser alert

=1.8.0=
* [Added] Support for ACF 6

=1.7.9=
* [Bugfix] Elementor Pro gallery images preview
* [Added] Support for user profile

=1.7.8=
* [Bugfix] Sanitizing and escaping inputs

=1.7.7=
* [Bugfix] Sanitizing and escaping inputs

=1.7.6=
* [Bugfix] Sanitizing and escaping inputs

=1.7.5=
* [Bugfix] Security issue and reset body overflow

=1.7.4=
* [Bugfix] Security issue

=1.7.3=
* [Bugfix] Remove edit and delete image button conditions

=1.7.2=
* [Bugfix] Illegal string offset error

=1.7.1=
* [Bugfix] ElementorPro class not found
* [Bugfix] Warning: Undefined array key “acf-photo-gallery-field”

=1.7.0=
* [Add] Option for to show/hide edit and remove button
* [Add] Support for Elementor

=1.6.8=
* [Bugfix] Make gallery images limit optional

=1.6.7=
* [Removed] Support to ACF get_field() function due to bug

=1.6.6=
* [Add] Added support to ACF get_field() function
* [Add] Added more fields types to extra fields
* [Add] Added in SweetAlert and images limit options
* [Add] Added message that ACF Photo Gallery isn’t supported on taxonomy

=1.6.5=
* [Bugfix] Remove not empty condition from checkbox item on edit
* [Remove] Remove support for ACF to REST API plugin
* [Add] Native support for REST API

=1.6.4=
* [Bugfix] JavaScript error in the console when removing images from the WordPress metabox

=1.6.3=
* [Added] Support for ACF 5
* [Added] Edit gallery with built-in or WordPress native model. Thanks to Github @makepost
* [Added] Under the hood improvements of the codebase
* [Added] Support for RESTFul API with ACF to REST API plugin

=1.6.2=
* [Bugfix] Keep data synced with the attachment data
* [Bugfix] Pull caption attachment caption using add filters
* [Bugfix] PHP 7.2 count() error

=1.6.1=
* [Bugfix] Edit image box disappears on click of pencil edit button reported by @rickytoof9

=1.6.0=
* [Bugfix] Error on saving post with empty gallery. Patch provided by @ugy
* [Bugfix] Showing multiple photo gallery fields in the same page reported by @rickytoof9
* [Added] Support for srcset. Special thanks to @ugy for the code

1.5.0

  • [Added] Support for SVG
  • [Added] Support for legacy PHP version
  • [Added] Add extra fields

1.4.0

  • [Added] Can sortable gallery images
  • [Bugfix] Fixed the order to follow the sort order for gallery images

1.3.0

  • Change the meta_key from acf field_key to acf field_name
  • [Added] Helper function acf_photo_gallery() to pull images
  • [Added] Helper function acf_photo_gallery_resize_image to resize the image on fly and save it
  • [Bugfix] Issue with target parameter in config
  • [Bugfix] Issue with url not saving properly

1.2.0

  • [Bugfix] Support for WordPress 4.6
  • [Added] Some changes on on the display
  • [Added] Fetch the data from the database

1.1.0

  • [Bugfix] Undefined index: acf-photo-gallery-field on file acf-photo_gallery-v4
  • [Bugfix] When delete the photos from the gallery, the last photo was not deleting
  • [Bugfix] Gallery photos was not saving in the database

1.0.0

  • Initial Release.

Full changelog on WordPress.org →

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best ACF Photo Gallery Field alternatives

All acf plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Advanced Custom Fields (ACF®) Advanced Custom Fields (ACF®) ACF helps customize WordPress with powerful, professional and intuitive fields. Proudly… by WP Engine 2M+ ★★★★★★★★★★ 4.5 (1.4K) 2 weeks ago 97
2 ACF Content Analysis for Yoast SEO ACF Content Analysis for Yoast SEO WordPress plugin that adds the content of all ACF fields to the Yoast SEO score analysis. by Yoast 100K+ ★★★★★★★★★★ 4.1 (35) 1 month ago 84
3 Advanced Custom Fields: Extended Advanced Custom Fields: Extended All-in-one enhancement suite that improves WordPress & Advanced Custom Fields. by Konrad Chmielewski 100K+ ★★★★★★★★★★ 4.8 (132) 1 month ago 76
4 Advanced Custom Fields: Font Awesome Field Advanced Custom Fields: Font Awesome Field Adds a new 'Font Awesome Icon' field to the popular Advanced Custom Fields plugin. by Justin Kruit 90K+ ★★★★★★★★★★ 4.9 (36) 1 month ago 81
6 Table Field Add-on for ACF and SCF Table Field Add-on for ACF and SCF A Table Field Add-on for the Advanced Custom Fields and Secure Custom Fields Plugin. by Johann Heyne 50K+ ★★★★★★★★★★ 4.9 (59) 2 weeks ago 80
7 Really Simple CSV Importer Really Simple CSV Importer Alternative CSV Importer plugin. Simple and powerful, best for geeks. by Webの相談所 40K+ ★★★★★★★★★★ 4.9 (107) 2 months ago 86
8 Advanced Custom Fields: Gravity Forms Add-on Advanced Custom Fields: Gravity Forms Add-on Provides an Advanced Custom Field which allows a WordPress user to select a Gravity Form as… by DannyvanHolten 30K+ ★★★★★★★★★★ 4.2 (14) 10 months ago 55
9 ACF Quick Edit Fields ACF Quick Edit Fields Enable Columns, Filters, Quick Edit and Bulk Edit for ACF Fields in WordPress List Tables by podpirate 30K+ ★★★★★★★★★★ 4.5 (43) 2 years ago 38
10 Image Aspect Ratio Crop Field for Advanced Custom Fields Image Aspect Ratio Crop Field for Advanced Custom Fields ACF field that allows user to crop image to a specific aspect ratio or pixel size by joppuyo 20K+ ★★★★★★★★★★ 4.8 (26) 2 weeks ago 78
11 ACF Options For Polylang ACF Options For Polylang Improves Polylang by adding per-language support for ACF options pages—each language can… by Amaury Balmer 20K+ ★★★★★★★★★★ 4.4 (17) 7 months ago 44

FAQ

ACF Photo Gallery Field: quick answers

Straight answers, pulled from live WordPress.org data.

Live data from WordPress.org · checked Sep 28, 2026

Is ACF Photo Gallery Field free?

Yes. ACF Photo Gallery Field is free to download and use from the official WordPress.org plugin directory.

Is ACF Photo Gallery Field safe to use in 2026?

ACF Photo Gallery Field works, but test it on a staging site before relying on it in 2026. It runs on 60K+ sites, is rated 4/5 and was last updated 9 months ago, and scores 47/100 on our health check.

How many websites use ACF Photo Gallery Field?

ACF Photo Gallery Field is active on 60K+ WordPress websites and has been downloaded 662,226 times since it launched in July 2016. It was downloaded 3,175 times in the last 30 days.

Does ACF Photo Gallery Field work with WordPress 7.1?

ACF Photo Gallery Field is officially tested up to WordPress 6.9.9, while the latest release is 7.1.2. It may still work, but try it on a staging site first.

What PHP version does ACF Photo Gallery Field need?

ACF Photo Gallery Field requires PHP 7.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was ACF Photo Gallery Field last updated?

The latest version, 3.1, was released on December 26, 2025 (9 months ago).

Who makes ACF Photo Gallery Field?

ACF Photo Gallery Field is developed and maintained by Navneil Naicker.

What are the best alternatives to ACF Photo Gallery Field?

The most popular alternatives to ACF Photo Gallery Field are Advanced Custom Fields (ACF… (2M+ installs), ACF Content Analysis for Yo… (100K+ installs) and Advanced Custom Fields: Ext… (100K+ installs).

Powered by PageForge

Want thousands of pages that rank like these? Build them in an afternoon.

This directory runs on the same engine as PageForge. Turn any spreadsheet, CSV or API into thousands of fast, SEO-ready WordPress pages — with schema, internal links and AI-written copy baked in.

  • CSV, Google Sheets & API data sources
  • AI content, schema & internal links per page
  • Works with Elementor, Gutenberg, Yoast & Rank Math
  • Free on WordPress.org — no credit card
Sarah is here to help!
Hi there! 👋 Need help finding what you're looking for?
Sarah
Sarah
Online & Ready to Help
Hi there! 👋 Need help finding what you're looking for?

We'll use this to continue our conversation

Just now ✓ Verified

Join 500+ SEO Pros Scaling Their Strategy

Get exclusive programmatic SEO tactics, AI content workflows, and the latest PageForge updates delivered straight to your inbox. Stay ahead of the algorithm.

We care about your data in our privacy policy.