From the media section in WordPress, I can see that I can edit
- Title
- Alternate text
- Caption
- Description
I need to add extra data, like shutter speed, location & film.
Short of something like title: "bla bla", shutterSpeed: "4"
in the description field (and parsing it), is there any plugin that adds this functionality?
It should be easy enough for a laymen to enter data into.
Thanks!
WordPress will store any EXIF data it can retrieve at point-of-upload into the attachment metadata array (which is serialized in the
postmeta
table under the key_wp_attachment_metadata
).You can retrieve this metadata using
wp_get_attachment_metadata($attachment_ID)
.To add your own fields to the edit attachment form, check out
get_attachment_fields_to_edit()
inwp-admin/includes/media.php
(line1034
as of 3.0).You can filter
attachment_fields_to_edit
, passing back a structured array like so;NG Gallery can extract metadata from the EXIF data in the image and you have title/description fields as well