Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WP Gallery EXIF Reader

Extract EXIF information when using the gallery shortcode.

The data isn't displaying. I use an attachment.php or image.php file.

Just add <?php ec_get_image_exif(); ?> after the image dispaying code in your file.

Can I display exif data even if I'm not using the gallery shortcode?

Yes. The function ec_get_item_exif can take the url of the full-size image or the attachment ID as an argument.

Can I display data other than the default?

Uncomment //add_action('loop_start', 'ec_exif_reader_debug', 1)

The available data will display in an array at the top of the page. If it doesn't, add this to the top of the page:

<?php ec_exif_reader_debug(); ?>

Choose your data then add it to the list in the gallery-exif-reader.php file, in this form:

  1. $output .= "<li><span class=\"exifTitle\">Aperture</span> " . $exif_array['SubIFD']['ApertureValue'] . "</li>\n";
  2. echo "<li><span class=\"exifTitle\">Aperture</span> " . $exif_array['SubIFD']['ApertureValue'] . "</li>\n";

(1) is for ec_get_attachment_exif (2) is for ec_get_image_exif and ec_get_item_exif

Some of my images have no EXIF data. Will the plugin display an empty table?

No. The plugin checks for a value in the ['IFD0']['Model'] field of the array. If there's no value, the table doesn't display.

Can I change the way the date displays?

Yes. Change $exif_date using formatting from php.net/date.

Requires: 2.7 or higher
Compatible up to: 2.8
Last Updated: 8 years ago
Active Installs: 30+


0 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.