Shortcode: Dynamic Galleries

Requirements

Overview

The Dynamic Galleries Addon extends WordPress’ native [gallery] shortcode, by providing support for additional shortcode attributes, allowing dynamic galleries to be built by Media Category, Author and Search Terms.

With the Dynamic Galleries Addon enabled, dynamic galleries can further be filtered by EXIF and IPTC metadata.

There are two ways to insert Dynamic Galleries into your content:

  • Using the Insert Dynamic Gallery button
  • Manually adding attributes to your existing [gallery] shortcode
Refer to the Dynamic Galleries Addon Shortcode Documentation first to understand how to build Dynamic Galleries.

Manually Adding Attributes to existing Galleries

Refer to the Dynamic Galleries Addon Shortcode Documentation first to understand how to build Dynamic Galleries.

The EXIF and IPTC Addon provides additional attributes that can be added to the [gallery] shortcode, as well as those supported by the Dynamic Galleries Addon:

Parameter Accepted Value Description
camera_make_in string Images will be displayed where the Camera Make matches the given value. To specify more than one value, separate values with a comma.
camera_make_not_in string Images will be displayed where the Camera Make does not match the given value. To specify more than one value, separate values with a comma.
camera_model_in string Images will be displayed where the Camera Model matches the given value. To specify more than one value, separate values with a comma.
camera_model_not_in string Images will be displayed where the Camera Model does not match the given value. To specify more than one value, separate values with a comma.
created_date_in string Images will be displayed where the Created Date matches the given value. To specify more than one value, separate values with a comma.
created_date_between string Images will be displayed where the Created Date falls between the two given dates, in the format yyyy-mm-dd,yyyy-mm-dd
created_time_in string Images will be displayed where the Created Time matches the given value. To specify more than one value, separate values with a comma.
created_time_between string Images will be displayed where the Created Time falls between the two given times, in the format hh:mm:ss,hh:mm:ss
author_in string Images will be displayed where the Author matches the given value. To specify more than one value, separate values with a comma.
author_not_in string Images will be displayed where the Author does not match the given value. To specify more than one value, separate values with a comma.
comments_in string Images will be displayed where the Comments matches the given value. To specify more than one value, separate values with a comma.
comments_not_in string Images will be displayed where the Comments does not match the given value. To specify more than one value, separate values with a comma.
description_in string Images will be displayed where the Description matches the given value. To specify more than one value, separate values with a comma.
description_not_in string Images will be displayed where the Description does not match the given value. To specify more than one value, separate values with a comma.
title_in string Images will be displayed where the Title matches the given value. To specify more than one value, separate values with a comma.
title_not_in string Images will be displayed where the Title does not match the given value. To specify more than one value, separate values with a comma.
latitude_in string Images will be displayed where the Latitude matches the given value. To specify more than one value, separate values with a comma.
latitude_not_in string Images will be displayed where the Latitude does not match the given value. To specify more than one value, separate values with a comma.
longitude_in string Images will be displayed where the Longitude matches the given value. To specify more than one value, separate values with a comma.
longitude_not_in string Images will be displayed where the Longitude does not match the given value. To specify more than one value, separate values with a comma.

Example Shortcode Usage

Display Camera Make and Model on all Images matching the Camera Make = HMD Global 

[gallery camera_make_in="HMD Global" display_camera_make="true" display_camera_model="true"]

Media Library Organizer: EXIF and IPTC Addon: Shortcode: Example: Display Images where Camera Make = HMD Global

Display Camera Make and Model on all Images matching the Category Name “Vehicles” and having a Camera Make = HMD Global 

[gallery mlo-category_in="Vehicles" camera_make_in="HMD Global" display_camera_make="true" display_camera_model="true"]

Media Library Organizer: EXIF and IPTC Addon: Shortcode: Example: Display Images where Camera Make = HMD Global, Category = Vehicles

Display Camera Make, Model and Created Date on all Images photographed/created in May 2019

[gallery created_date_between="2019-05-01,2019-05-30" display_camera_make="true" display_camera_model="true" display_created_date="true"]

Media Library Organizer: EXIF & IPTC: Display by Date