• Resolved carlseibert

    (@carlseibert)


    Hi. This plugin is incredible! Thank you for writing it!

    I am trying to map the new IPTC fields for Alt Text and Extended Description to WordPress’s Alt Text and Description fields, respectively.

    The new IPTC fields exist only in the XMP data block. They are at Iptc4xmpCore:AltTextAccessibility and Iptc4xmpCore:ExtDescrAccessibility (as expressed in the IPTC standard)

    How should I do my content template to read from those XMP fields?

    -Carl

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter carlseibert

    (@carlseibert)

    Hi,

    I may have solved my own problem.

    It turns out, in MLA, you separate the XMP namespace from the field name with a dot.

    So, I have a content template for the new IPTC Alt Text (Accessibility) field that looks like so: template:([+xmp:Iptc4xmpCore.AltTextAccessibility+]) and it appears to be working.

    For Extended Description (Accessibility) I have : template:([+xmp:Iptc4xmpCore.ExtDescrAccessibility+])

    This is great news. Any WordPress user who needs to map contents of the new IPTC fields into pages or posts can use your plugin. Issue solved! (At least this part of the issue. Disabled people still need to be able to access the data. I’m not really qualified to speak to that half of the equation.)

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your positive comments on the plugin and for your question; thanks as well for finding the solution yourself before I could respond.

    The IPTC support in MLA is based on a PHP library function that hasn’t been updated for the newer IPTC 4 extensions. However, the new data is stored in XMP format and you can get it from there. As you discovered, the xmp:Iptc4xmpCore. prefix gets you to any of the new fields.

    You can use the new “Attachment File Metadata” meta box on the Media/Edit Media screen to inspect all of the IPTC, EXIF and XMP data and get the right syntax to access them in MLA applications.

    Thanks for posting your solution and for your interest in the plugin.

    • This reply was modified 3 years, 4 months ago by David Lingren.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Syntax for XMP fields?’ is closed to new replies.