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 by 10Web – Mobile-Friendly Image Gallery
Photo Gallery is the leading plugin for building beautiful mobile-friendly galleries in a few minutes. Useful Links: Live Demo Premium Photo Gallery by 10Web Special Offer for all Premium Plugins If you’re looking for a user friendly and feature rich plugin to add responsive galleries and albums to your website, Photo Gallery plugin can be the best option for you. It’s simple to use yet packed with powerful functionality, allowing you to create anything from simple to complex photo galleries. Photo Gallery comes packed with stunning layout options, gallery and album views, multiple widgets and a number of extensions that take its functionality even further. WordPress Photo Gallery is a great choice for photography websites and blogs, as well as sites that want to have robust image galleries with easy navigation. Check the extensive feature list of the plugin bellow, have a look at the plugin demo and give it a try. Benefits Increased visitor engagement – Images and photos grab attention and make websites more engaging. Using images in your posts and pages will result in increased visitor engagement and can give a boost on your posts’ pageviews. Enhanced SEO – Adding relevant tags and metadata to the images can enhance your SEO and provide more visibility in relevant search results in Google. Better page navigation – Organized galleries and albums will make your website look more professional, easy to navigate and result in a better user experience. Modern web design – Relevant high-resolution photos displayed in beautiful layouts are an integral part of a well-designed website that gets results. Full Control – Plugin gives you flexibility in terms of the design and customization of your galleries. You’ll get full control over the style, optimization and display of visual content on your website. Support – Get timely and effective support to all its users. We keep standards high and response time low. What’s in it CUSTOMIZABLE VIEWS Photo Gallery provides a number of view options to organize your galleries and albums in beautiful views, including Slideshow, Thumbnails, Masonry, Image Browser, Extended and Compact Album, Blog Style, Mosaic. The layouts give you the flexibility to customize them to match your needs. UNLIMITED PHOTOS, GALLERIES AND ALBUMS Sounds great, right? With plugin you can have as many galleries and albums as you want, and stuff them with unlimited number of photos and videos. Kinda unlimited everything. POWERFUL LIGHTBOX You can display your media content in a responsive lightbox that comes with 15 slideshow effects, supports social sharing, full width view option, filmstrip, image commenting (Premium version), lightbox autoplay and many more options that make your lightbox look awesome. AUDIO AND VIDEO SUPPORT The Photo Gallery plugin allows you to include both videos and images within a single gallery. The WordPress Plugin supports YouTube, Vimeo, Instagram, Flickr or Dailymotion videos within Galleries. All you need to do is copy the URL of the video you want to include in the gallery plugin. It’s also possible to add audio tracks for the image slideshow. MULTIPLE WIDGETS There are four widgets in the gallery plugin: WordPress Standard Tag Cloud, Dynamic Tags Cloud (Premium version), Slideshow and Gallery widget. Use one of these widgets to display your albums on the sidebar areas of your website. IMAGE WATERMARKING AND RIGHT CLICK PROTECTION With watermarking feature of the Photo Gallery plugin you can add text or image watermarks on the photos in your galleries and albums, and protect them from illegal use. Right click protection will protect your images from unlawful distribution. PRELOADED THEMES The plugin comes with two default Themes. The themes are giving you the option to add new themes with custom styling, colors, layout settings, and image navigation options. SOCIAL SHARING You can allow users to share photos on Facebook, Twitter, Pinterest and Tumblr with social sharing buttons. ADD-ONS Photo Gallery comes with a number of add-ons that can help you import/export galleries and albums from one WordPress website to another. SETTINGS/CUSTOMIZATION *Some customizations described here are available in Premium version . Please refer to feature summary for additional info. Photo Gallery allows you to create unlimited galleries and organize them into different photo albums providing detailed gallery descriptions and tags.The plugin supports both image and video content. Adding photos and videos to the galleries from the WordPress dashboard is simple and easy with its user-friendly admin panel. You’ll get all the tools you need to add and edit photos in the galleries.The file manager will help to rename, upload, remove, copy images and/or image directories with a few simple steps. Under the options (settings) tab in admin panel you’ll find an extensive list of settings for galleries, thumbnails, watermarking, social accounts and slideshow that you can configure based on your needs. Plugin features a powerful lightbox that supports filmstrip and image carousel display. Also, you can enable image comments options and show the comments of the images right in the lightbox. There is a dedicated section for lightbox settings where you can choose to enable/disable AddThis display, image download option, image count and other lightbox features. Under the social options tab you’ll find settings for the Instagram galleries, where you can specify Instagram feed auto update interval. With the available user roles you can choose who can add/edit galleries, images, albums and tags (Premium feature). Premium version adds Commenting possibility with Captcha protection Dynamic Tag Cloud widget with image tag cloud and text tag cloud options Add ons support. Possibility of changing the roles of who can edit the galleries/albums/images (Author/All Users) Photo Gallery Add-ons Google Photos Add-on – Link and display your Google Photos albums in one click. Export/Import Add-on Export/import galleries, albums and all related data from one WordPress site to another. IMPORTANT: If you think you found a bug in Photo Gallery or have any problem/question concerning the plugin, please check out Support Forum in our website.