Prerequisites and Setup
- Any Media Library Organizer Pro license
Overview
Dynamic Galleries extends WordPress’ native [gallery] shortcode, allowing dynamic galleries to be filtered by Media Category, Author and Search Terms – and EXIF 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
Insert Dynamic Gallery
Manually Adding Attributes to existing Galleries
Use the following EXIF attributes in your existing WordPress [gallery] shortcode, to filter images by EXIF metadata:
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"]
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"]
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"]