• Resolved visualsuplex

    (@visualsuplex)


    So I’m having some inconsistencies with setting up mapping templates.

    I’ve been successful mapping basic EXIF (camera, focal length, shutter speed, iso, aperture) using the following syntax:
    template:[+shutter_speed+]

    But when I use say:
    template:[+empty+]

    It just fills all my fields with “[+empty+]”

    Or if I try any of the Field-level enhanced EXIF CAMERA values, like:

    template:[+LensModel+]

    It fills all the fields with [+LensModel+]

    What am I doing wrong?

Viewing 1 replies (of 1 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your questions and for the examples you posted.

    Regarding template:[+empty+], this special value only works with the WordPress Standard Fields (Title, Caption, Description and ALT Text). It does not work with taxonomy or custom field mapping rules. If you are having trouble applying this value to any of the Standard Fields in the IPTC/EXIF mapping rules, any additional details you can give me will let me be more specific or investigate further.

    Regarding template:[+LensModel+], I suspect that for some of your images this field is not populated. By default, when the substitution of a parameter like [+LensModel+] fails the result is to leave it unaltered in the final template value. You can change missing values to an empty result by enclosing then in parentheses, e.g., template:([+LensModel+]). This is a “Conditional” template element; you can get more information in the “Content Templates” section of the Documentation tab.

    I am marking this topic resolved, but please update it if you have probems or further questions regarding the above suggestions.

Viewing 1 replies (of 1 total)

The topic ‘Help with EXIF/IPTC templates’ is closed to new replies.