Custom Taxonomy doesn't works with Location Map
-
Hi everyone,
I added a new custom taxonomy with the name “location-categories” to the location custom post type which comes with the Events Manager Plugin.
I’m using this custom taxonomy as a way to categorize my Locations and to give them a special template through my archive.php->taxonomy-location-categories.php.
Now what I would like to do is to use the Location Map Shortcode/PHP Function to display a location map with all locations in that specific custom taxonomy category.
Now as I read in the changelogs of Version 5.4.4 I thought that this would be possible as custom taxonomies can be used as search parameters, but unfortunately my try to use:
echo em_get_locations_map_shortcode(array(‘location-categories’ => 355));
doesn’t bring up the map.It only shows the gray map with the status “Loading map…”
To confirm that it works with the native build in event-categories, I switched the Parameter to:
echo em_get_locations_map_shortcode(array(‘category’ => 1169));
which works as expected.I did search through the json_decode functions and more, but haven’t found a hint where to go next to make my custom taxonomy work.
Any help will be highly appreciated!
- The topic ‘Custom Taxonomy doesn't works with Location Map’ is closed to new replies.