WordPress.org

Ready to get started?Download WordPress

Forums

Exifography
[resolved] EXIF below all images in a post (6 posts)

  1. stothardrob
    Member
    Posted 1 year ago #

    Has anyone been able to get EXIF data to display below each image in a post? I think this has to be done by embedding code in the PHP?

    The method of inserting for each individual ID is too slow for what I need this for.

    Thanks in advance.

    http://wordpress.org/extend/plugins/thesography/

  2. kristarella
    Member
    Plugin Author

    Posted 1 year ago #

    To do it for each image in a post you will need to use the shortcode. NB, it's not a lot slower than inserting the images themselves since you need to click "insert into post" for each image, you could copy and paste the shortcode from the image dialogue at the same time.

    If you're using a gallery I wrote this post today about filtering the gallery output to include the EXIF in that: http://www.kristarella.com/2012/09/exif-in-wordpress-gallery-image-titles/

    It might be possible to use a content filter, but it would be rather complicated: we'd need to write a PHP function that goes through the post content, picks out the image tags, find the ID for that image (WordPress usually inserts it in the image class) and then insert the EXIF after that image.

    If you can be more specific about what you are looking to do I might be able to help.

  3. Jack Struck
    Member
    Posted 1 year ago #

    Hi there. You already output the shortcode code to the media overview page. Is there a way to just insert that code right into the description field?

    Background: I'm presenting photos in lightboxes, and would like the exif data to display below it.

  4. kristarella
    Member
    Plugin Author

    Posted 1 year ago #

    @jack The shortcode doesn't get processed in the caption field and I don't think the description field is used in image output. So it's no use putting it in there. It might be able to go in the alt or title fields, but I think I've tried that before and had no success replacing those things for individual images, only in galleries.

  5. Jack Struck
    Member
    Posted 1 year ago #

    Thanks for the reply. I found a lightbox plugin that pulls the description field, so I just copy and paste the shortcode into it.

  6. kristarella
    Member
    Plugin Author

    Posted 1 year ago #

    Okay, glad that works for you. I couldn't find a way of filtering the image description.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic