Location In Modern Event calendar
Location section is very simple and easy to use. Here we will explain how to add a location and use it multiple times for different events. This section also includes an important field (Address) for those who want to set up Google Maps API into their event. Of course, if you want to setup an event quickly, you have several options for configuring the location section of each event.
- Enter location name,
- Enter slug for location,
- Google key, which should be configured in settings, will be using this address to show the map on the front end.
Note: to auto suggest address, you should make shure set correct Google Map API: https://webnus.net/dox/modern-events-calendar/google-maps-options/
After adding the location in “location menu” you can assign it to your desired event post, also you can insert a new location in event post type manually. Just click on a drop-down and select insert New Location, like the following example:
Front-end view for an inserted location looks like this:
Address field will be an exported map.
Note 1: To auto-suggest address, You should get the “Google Map API” through the description of this article. Also If you need to use “OpenStreetMap”, please note this feature is not available on MEC PRO But you can do this by using “Advanced Map” and change the map.
Note 2: You can use the optional Latitude and Longitude fields to record the geographic location of your event. You can also use this free online service to get these coordinates: https://www.latlong.net/