Support » Plugin: File Gallery » [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:

    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 ‘[Plugin: File Gallery] EXIF in template?’ is closed to new replies.