Our plan would be to implement both Places and Events. I have had a look at a few of the Events Calendar plugins and they all appear to come with their own built-in Places. Is there an Events Calendar plugin you are aware of which will allow us to link the plugins Events to your Places Custom Posts so that when a subscriber is submitting an Event they can select one of the existing Places configured under your theme to be linked to the Event?

Furthermore, what would be involved in having both your Places and a plugins Events appear on the locations map or how would we begin implementing such a feature?
August 9, 2013, 4:02pm
AIT Supportivan
Hi, thanks for your message. Unfortunately we do not provide any aftersale custom development work for our themes so I can just point you to directions where you, or your developer can start to implement wanted functionality.

You are asking for plugin which could assign own event custom post type to Locations taxonomy used in theme Item custom post type. This is specific taxonomy used just in our theme so you can't expect that some plugin would be able use this taxonomy for own post type. But you can use simply default wordpress function register_taxonomy_for_object_type(); http://codex.wordpress.org/Function_Reference/register_taxonomy_for_object_type
In case of plugin Events Manager http://wordpress.org/plugins/events-manager/ you can go to file ./events-manager.php and use there function to integrate theme Locations taxonomy also for Events custom post type, just add this into end of fileadd_action( 'init', 'integrate_ait_locations', 11 );
function integrate_ait_locations() {
register_taxonomy_for_object_type( 'ait-dir-item-location', EM_POST_TYPE_EVENT );
}
Now when you create some new Event, you are able assign this event also to any of created Locations used for Items too.

To show Events on the locations map (on any location page) you will need implement function to get Events assigned to currently opened Location page and then render these events in the similar way like Items in file ./templates/snippets/map-javascript.php, in this loop: {foreach $items as $item}
{
latLng: [{ifset $item->optionsDir['gpsLatitude']}{!$item->optionsDir['gpsLatitude']}{else}0{/ifset},{ifset $item->optionsDir['gpsLongitude']}{!$item->optionsDir['gpsLongitude']}{else}0{/ifset}],
options: {
icon: "{!$item->marker}",
shadow: "{!$themeOptions->directoryMap->mapMarkerImageShadow}",
},
data: '{else}">{/ifset}'+{ifset $item->post_title}{$item->post_title}+{/ifset}'{if $item->rating}{for $i=1; $i rating["max"]; $i++}{/for}{/if}'+{ifset $item->optionsDir["address"]}{$item->optionsDir["address"]|nl2br}+{/ifset}'' + {__ 'VIEW MORE'} + ''
}
{if !($iterator->last)},{/if}
{/foreach}
You can use function to read events from database in file ./taxonomy-ait-dir-item-location.php, also Items shown on map on location page are read from database in this file.
For more specific customization of plugin or theme discuss please this issue with any experienced local web developer who would be able help you with it.

Thanks, Ivan.

August 12, 2013, 12:52pm