• Resolved Rick Hellewell

    (@rhellewellgmailcom)


    I’d like to have the ‘caption’ (specified via an #img1 caption=’this is the caption’# in the email) be stored in the pictures metadata, and then have that metadata caption be used in the picture.

    We’d sort of discussed this about 6 months ago, and you suggested using postie_place_media filter, but I don’t see how that will store the caption into the image metadata – at least, from looking at the doc for that filter.

    Is there a way to get the caption into the pix ‘caption’ metadata?

    Thanks! Great plugin!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Rick Hellewell

    (@rhellewellgmailcom)

    Additional info (partly for me; I figured you knew this); found here: https://wordpress.stackexchange.com/questions/1777/are-captions-stored-anywhere

    Yes, it stores the caption in it’s own place in the DB. I can’t quote the exact location but in WordPress, “Attachments” are a post type and it stores each attachment just like a post. For an attachment post type, it treats the Image Caption as the_excerpt the Image Description as the_content and the Image Title as… the_title.

    So, during the process of storing the picture, Postie could also store the ‘caption’ text in the db as the pictures’ ‘excerpt’, etc.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    One of the issues is that Postie lets you reference the same image multiple times with different captions. I.e. #img1 caption=’cap1’# #img1 caption=’cap2’#

    Granted this likely doesn’t happen very often, but often enough that I had to make it work.

    I’ve gone ahead and added the logic to update the caption metadata in the next version.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Released in 1.8.45 today

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Store Caption in Image Metadata’ is closed to new replies.