Title: Syntax for XMP fields?
Last modified: November 18, 2021

---

# Syntax for XMP fields?

 *  Resolved [carlseibert](https://wordpress.org/support/users/carlseibert/)
 * (@carlseibert)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/syntax-for-xmp-fields/)
 * 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](https://wordpress.org/support/users/carlseibert/)
 * (@carlseibert)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/syntax-for-xmp-fields/#post-15083047)
 * 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](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/syntax-for-xmp-fields/#post-15086640)
 * 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 4 years, 6 months ago by [David Lingren](https://wordpress.org/support/users/dglingren/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Syntax for XMP fields?’ is closed to new replies.

 * ![](https://ps.w.org/media-library-assistant/assets/icon-256x256.png?rev=973502)
 * [Media Library Assistant](https://wordpress.org/plugins/media-library-assistant/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-library-assistant/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-library-assistant/)
 * [Active Topics](https://wordpress.org/support/plugin/media-library-assistant/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-library-assistant/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-library-assistant/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [David Lingren](https://wordpress.org/support/users/dglingren/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/syntax-for-xmp-fields/#post-15086640)
 * Status: resolved