WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!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.

Fun with Photo Data

Adds a shortcode to display the EXIF and IPTC Data that WordPress 2.5 extracts.

To Use

Shortcodes

Include the following shortcode in your post to display the photodata

[photodata id="1" url="http://..." output_string="" fail=""]

The ID is the attachment ID of your photograph. You can find it by:

When you insert an image from the media thingy in WordPress 2.5 it will include a class name in HTML code it inserts. It will look something like this: wp-image-229 . The id you need in this case would be 229

The URL is the full URL to your image. You can use this instead of using the ID but the image must still have been uploaded to your site using the media uploaded in WordPress 2.5.

By default the data is presented in a list, but you can specify how it is presented, including html, and you can choose which data is shown, for example:

[photodata ioutput_string='<p class="image_meta">Shot with a ?camera? by ?credit? on ?created_timestamp?. (?focal_length?, ?shutter_speed? @ ?aperture?)</p>']

The codes surrounded by question marks (?shutter_speed?) will be replaced by the relevent data.

If you don’t include any of the optional fields the code will assume you want the data for the first image attached to the post. Note this is not the first image in the post, but the first image in the upload gallery that you see when you upload images.

Automated Insertion

If you have a photoblog this is likely to be of most use to you.

Under the settings menu you will find an option for EXIF Data. This lets you select a category, choose a title, set the default output string, and set the message for when there is no data. Note: If you make the message for when there is no data blank then this will not output anything, not even the title.

The photo data will now be automatically added to every post in that category. It will use the first image in the attached gallery. As above this is not the first image in the post, but in the gallery you see when uploading photos.

Requires: 2.5 or higher
Compatible up to: 2.7
Last Updated: 2008-11-28
Downloads: 2,570

Ratings

3 stars
3 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

0,1,0
0,1,0
0,2,0
0,1,0
100,1,1