• Resolved francismacomber

    (@francismacomber)


    In 5.9.3, calling EM_Locations::get() would return custom location fields in a location_attributes array. Since upgrading to 5.9.4, they are being returned as event_attributes. Here’s a print_r example:

    5.9.3

    [location_attributes] => Array
    (
    [location_phone] => (xxx)xxx-xxxx
    [location_category] => example

    5.9.4

    [event_attributes] => Array
    (
    [location_phone] => (xxx)xxx-xxxx
    [location_category] => example

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

    (@francismacomber)

    Dug into the source…

    In em-location.php on line 208, shouldn’t it read:

    $this->location_attributes[$location_meta_key] = ( is_array($location_meta_val) ) ? $location_meta_val[0]:$location_meta_val;

    instead of:

    $this->event_attributes[$location_meta_key] = ( is_array($location_meta_val) ) ? $location_meta_val[0]:$location_meta_val;

    ?

    Thanks

    Plugin Support angelo_nwl

    (@angelo_nwl)

    should be correct with the latest EM dev version 5.9.4.1

    TreeTrail

    (@aprilschmitt27)

    Yes thank you …the latest dev version does display my custom location fields.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Location Fields in version 5.9.4’ is closed to new replies.