Forum Replies Created

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

    (@pgill11)

    Kudos
    Please let me say, one programmer to another, that it’s been a pleasure working with your code. It’s well written and structured. And has an impressive level of functionality.

    The Problem
    My goal is to import three location metadata values created by the Reverse Geocoding feature in Photo Mechanic 6. The location needs to be imported into WP categories using the following hierarchy: country / state / city.

    The Solution
    There are two parts to the solution.

    1. The MLA EXIF/Template Value needs to be set to: template:[+iptc:country-or-primary-location-name+](\|[+iptc:province-or-state+])(\|[+iptc:city+])
    2. line 98 in mla-hierarchical-mapping-example.php needs to be changed
    • from: if ( false !== strpos( $rule[‘exif_value’], ‘[+xmp:lr.hierarchicalSubject+]’ ) ) {
    • to: if ($rule[‘hierarchical’] && $rule[‘active’] && (0 < strlen($rule[‘exif_value’]))) {

    Conclusion
    I believe that you could merge this example code into the production plugin for full-time use by the Att. Categories rule.

    There is only one Att. Categories rule which means we can import only one <span style=”text-decoration: underline;”>type</span> of category. In my case that’s a location. In the original plugin that’s getting a subject from the Lightroom hierarchicalSubject. It’d be nice to be able to create additional taxonomy term mapping rules.

    Thread Starter pgill11

    (@pgill11)

    Just sent my contact info.

    BTW I’m using the reverse geocoding feature in Camera Bits’ Photo Mechanic to populate the 3 XMP properties.

    Thread Starter pgill11

    (@pgill11)

    What about the other way around – create an email in MailPoet, then grab the HTML and create a WP page with it?

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