Skip to main content
Agency Program 50% cashback. 10% commissions. Priority support. Built for growing agencies. 50% cashback for agencies Speak to the team Join free
ACF Photo Gallery Field icon

ACF Photo Gallery Field

v3.0
by Navneil Naicker · 3.9 (28 reviews)

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

60K+ active installs Updated Jan 11, 2025 Tested to 6.5.5 Requires PHP 7.0
Try Demo Download
Pre-installed Ready in ~10s No card

About ACF Photo Gallery Field

The ACF Photo Gallery Field plugin will no longer be maintained after October 2024. However, there is a new and improved plugin called ACF Galerie 4, which offers enhanced features and ongoing support. You can easily migrate your data from ACF Photo Gallery Field to ACF Galerie 4 using the built-in migration tool.

Frequently asked questions

What does this plugin do?
This plugin adds a Photo Gallery field to any post or page on your WordPress website.
What are the features of this plugin?
The features of this plugin include visually creating fields, adding multiple photos with customizable titles, captions, and links, assigning fields to multiple edit pages, easy data loading through an API, using native WordPress custom post type and metadata, supporting Elementor, and having a RESTful API.
Is this plugin suitable for non-coders?
No, this plugin requires knowledge of coding as it requires editing the WordPress theme source code. It does not provide shortcodes or prebuilt galleries.
How can I donate to support the developer?
You can donate to support the developer by clicking on the link provided in the FAQ section.
How can I use the 'acf_photo_gallery' function?
The 'acf_photo_gallery' function is a helper function that takes in the ACF_FIELD_NAME and POST_ID as parameters. It queries the database and compiles the images into an array.

Changelog

=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.

Try other plugins

Classic Editor icon

Classic Editor

4.9 · 9M+ installs

Enables the previous "classic" editor and the old-style Edit Post screen with TinyMCE, Meta Boxes, etc. Supports all…