ACF Photo Gallery Field
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. 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) ?> " > " alt=" " title=" "> 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/
Top keywords
- field25×3.02%
- acf22×2.65%
- gallery19×2.29%
- image19×2.29%
- id13×1.57%
- photo12×1.45%
- photo gallery12×1.45%
- url11×1.33%
- extra10×1.21%
- fields10×1.21%
- acf photo9×1.09%
- acf photo gallery9×1.09%
Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery
WordPress Gallery Plugin NextGEN Gallery has been the industry’s standard WordPress gallery plugin since 2007 and continues to receive over 1.5 million new downloads per year. It’s easy to use for simple photo galleries, but powerful enough for the most demanding photographers, visual artists, and imaging professionals who need a comprehensive photo gallery solution. NextGEN Gallery offers complete WordPress gallery management with the ability to batch upload photos, import metadata, easily add, delete, rearrange photos and create an unlimited number of galleries. You can even simply provide a zip file or choose a folder to upload photos. But our photo gallery plugin doesn’t stop there! NextGEN Pro This plugin is the lite version of the NextGEN Gallery plugin, which offers all the gallery features you’ll need like photo albums, lightboxes, backups, search, sharing, filtering, print fulfillment, eCommerce, animations, and tons more. Click here to purchase the best photo gallery plugin for WordPress now! The free version of NextGEN gallery provides three main gallery styles (slideshow, thumbnail, and imagebrowser galleries) and two album styles (compact and extended), all of which come with a wide array of options for controlling size, style, timing, transitions, controls, lightbox effects, and more. Learn more about NextGEN WordPress Gallery Plugin features. The best gets better with full support for the Gutenberg block editor. Now you can add a photo gallery or album anywhere on your site, with a page builder type feel directly in the WordPress editor. We truly make creating, building, and editing galleries easy. Feature List We’ve built NextGEN Gallery to be extremely powerful and full of features. Albums Organize multiple photo galleries into albums for easy sorting and viewing Tags Group multiple images together with tags, with easy-to-update renaming and management eCommerce Sell images from your photo gallery, or sell entire galleries with our built in payment processing. Works with Stripe and PayPal. Slideshows Make your galleries automatically rotate through a series of images Themes Access 84+ different types of themes to showcase your galleries Animations Create visual interest with 25+ different types of animations for each gallery Watermarks Protect your work with image and text-based watermarks. Capabilities Customize who can read, edit, and publish galleries with refined permsisions controls Image Proofing Let your customers choose which photos to purchase and improve your workflow. Print Fulfillment Sell your photos and ship prints directly to customers with automated print lab fulfillment and zero commissions Auto Tax calculations Automatically calculate sales tax when required for your customers. Coupons Offer discounts and incentives to increase your gallery sales Lightroom Integration Automatically sync and create photo galleries from Adobe Lightroom into NextGEN Gallery without any need to update your website. Social Sharing Create viral social media opportunities when your images are optimized for Open Graph and X Image Commenting * Add deep engagement to your images within the lightbox to increase gallery engagement Deep Linking Link directly to a specific image from one of your galleries Frontend Search * Add powerful filtering for your gallery based on tags Hover Captions * Add social sharing, tiles, and descriptions for each image Digital Downloads Offer digital downloads of your images for free, or chage for them with our eCommerce gallery plugin Right Click Disable prevent images in your galleries from being downloaded with easy right click and drag/drop protection. Customization * We’ve built in lots of individual customizations for each of our features so that you can make NextGEN Gallery perfect for you As you can see, we’ve built a photo gallery plugin that is suitable for everyone! Want a specific or missing feature? Just let us know. NEXTGEN GALLERY DEMOS *Basic Thumbnail Gallery *Basic Slideshow Gallery *Basic Imagebrowser Gallery *Basic Compact Album *Basic List Album NEXTGEN PRO DEMOS *Photo Print Sales *Photo Proofing *Digital Downloads *Pro Mosaic Gallery *Pro Masonry Gallery *Pro Tile Gallery *Pro Filmstrip Gallery *Pro Lightbox About Imagely NextGEN Gallery is a WordPress gallery plugin maintained by Imagely. We’re the WordPress photography experts. In addition to NextGEN Gallery, NextGEN Plus, and NextGEN Pro, we also make WordPress themes for photographers, providing beautiful turnkey websites for photographers. Learn more or connect with us: *Imagely Website *WordPress Themes for Photographers *Turnkey Photography Sites *NextGEN Gallery Documentation Credits Copyright: Imagely 2016-2024 Shortcodes NextGEN Gallery offers an easy-to-use Insert Gallery Window, which means you never need to work with shortcodes again when inserting and manageing galleries – if you would prefer not too. If you do want to work with shortcodes, there is a powerful shortcode system as you’d expect of a popular WordPress gallery plugin. Learn About NextGEN Gallery Shortcodes. For more information, feel free to visit the official website for the NextGEN Gallery WordPress Gallery Plugin.