Support » Plugin: Event Organiser » [Plugin: Event Organiser] Venue map – Directions to/from here?

  • Resolved thelittlestgiant


    Hey Steven,

    Just getting warmed up on this plugin here. It’s great, thanks!

    I’ve got the venue map on a single event page and it looks perfect. But, when I click on the location marker I expect there to be a pop-up for “directions to/from here” as you’d see on a usual google map. Is that something that’s supposed to be there or a setting that can be enabled?

    Maybe I’ve got something screwy in there…


Viewing 6 replies - 1 through 6 (of 6 total)
  • No – the google map does just mark the venue location. There are no directions (it would require to know the user’s location, for one – and when accessing via non-mobile devices this is usually a very rough estimate).

    It could be possible to set up a shortcode which produces a venue map, complete with directions – but I’ve not looked into how this might be done. I have also considered introducing a pop-up for the marker with venue details – but found Google’s pop-ups rather disappointing.

    I’m doing the following:
    I created a Custom Field named “gmaps_url” where I enter the Link to the Address generated on the Google Maps page directly.
    I then call this link in my template by putting the Adress URL field below the map:

    <address><a href="<?php echo get_post_meta($post->ID, 'event_gmaps_url', true); ?>" target="blank" title="Google Maps Link"><?php echo $venue_address['address']; ?><br /><?php echo $venue_address['postcode']; ?></a></address>

    Visitors can just click on the link and follow the directions procedure directly on Google.

    Awesome, thanks for sharing this!

    You could store it as venue meta instead (venue meta data was introduced in 1.4). That would save you manually saving the url for each event, but instead for each venue. You could probably automate this as well.

    Storing the gmaps link as venue meta makes it even better, thanks for this tip! And of course, thanks for this nice Plugin!

    @axenstar86: Just a tip: that is not how you are supposed to use the address-element. Address is only to be used to markup contact addresses of a document/file author.

    Hi Umbercode, thanks for pointing this out, you’re absolutely right.
    I’ll change this.


Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Event Organiser] Venue map – Directions to/from here?’ is closed to new replies.