WordPress 2.5 now extracts and saves the EXIF and IPTC data that is stored in photographs.
WordPress 2.5 also introduces shortcodes, a shorthand way of including data in posts.
This plugin makes use of these shortcodes to display the photo data as part of your post.
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.
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.
Unzip into the installation directory and then activate in the plugin screen.
Contributors & Developers
“Fun with Photo Data” is open source software. The following people have contributed to this plugin.Contributors