Retrieve the following Adobe XMP / IPTC information from images in the WordPress Media Library and NextGEN Galleries:
Creator Email
Owner Name
Creation Date
Modification Date
Label
Credit
Source
Headline
City
State
Country
Country Code
Location
Title
Description
Creator
Rights
Keywords
Hierarchical Keywords
The extracted XMP / IPTC data is cached on disk to improve performance and is refreshed if / when the original image is modified.
You can use the plugin in one of two ways; calling a method in your theme template(s) or using the [xmp] shortcode in your content.
There are no plugin settings - simply install and activate the plugin.
Automated Install
Go to the wp-admin/ section of your website.
Select the Plugins menu item.
Select the Add New sub-menu item.
In the Search box, enter the plugin name.
Click the Search Plugins button.
Click the Install Now link for the plugin.
Click the Activate Plugin link.
Semi-Automated Install
Download the plugin ZIP file.
Go to the wp-admin/ section of your website.
Select the Plugins menu item.
Select the Add New sub-menu item.
Click on Upload link (just under the Install Plugins page title).
Click the Browse... button.
Navigate your local folders / directories and choose the ZIP file you downloaded previously.
Click on the Install Now button.
Click the Activate Plugin link.
How do I retrieve XMP data as an array?
1
2
3
4
5
6
7
$adobeXMP=&adobeXMPforWP::get_instance();
$xmp=$adobeXMP->get_xmp($image_id);
echo'<p>Photograph by '.$xmp['Creator'].'</p>';
How do I include a shortcode in a post or page?
1
2
3
[xmp id="101,ngg-201"]
This shortcode prints all the XMP information for Media Library image ID "101" and NextGEN Gallery image ID "201". The XMP information is printed as a definition list <dl> with a class name of "xmp_shortcode" that you can style for your needs. Each <dt> and <dd> element also has a style corresponding to it's title - for example, the "Creator" list element has an "xmp_creator" class name. Here's an example of the definition list HTML:
Very Useful For Developers