Support » Plugins and Hacks » File Gallery » [Resolved] [Plugin: File Gallery] EXIF in template?

[Resolved] [Plugin: File Gallery] EXIF in template?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Aesqe


    hi ethan 🙂

    in the template, use the following code to get the EXIF data:

    $image_data = wp_get_attachment_metadata( $attachment->ID );
    $image_meta = $image_data['image_meta'];

    and then you will be able access the following properties:



    Thanks so much! That worked perfectly!!!!! =) =) =) =) =)

    Aesqe, as I’m understanding your suggestion, this will only allow us to insert EXIF meta into a full gallery insertion, correct? In other words, when inserting a single photo, there currently is no way to get EXIF data inserted into the caption or description?

    If that is correct, I guess this is more a complaint with WordPress’ media library and not offering more flexibility with EXIF at the time of importation.

    Plugin Author Aesqe


    @electrolund: take a look here: http://regex.info/exif.cgi?dummy=on&imgurl=http%3A%2F%2Ftodayilearned.co.uk%2Fwp-content%2Fuploads%2F2011%2F09%2Fcat-makes-friends-with-a-baby-deer-in-Odessa-zoo-in-Ukraine.jpg

    EXIF data from this particular image is copied to attachment title and description correctly when uploaded via WordPress.

    The function responsible for parsing EXIF data is wp_read_image_metadata.

    See the “Return Values” section to see which EXIF values translate to which attachment fields.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: File Gallery] EXIF in template?’ is closed to new replies.
Skip to toolbar