Skip Navigation

[Resolved] Show Events Manager events on Toolset Map

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 1 month, 4 weeks ago.

Assisted by: Minesh.

Author
Posts
#2748601

Hi there,

I'm using WP Events Manager (hidden link), which has a location field for the address of events. I want to show the events on a Toolset Map.

I've added hidden custom fields in Toolset settings to show the Events Manager fields: _location_address, _location_latitude, _location_longitude. I think these will be the correct fields, though I'm not 100% sure.

I've created a View with a Map and a marker for my loop.

I'm not generating any pins on my map. Even when I test the custom fields outside of the map/marker, I'm not getting any output from them, e.g.

Attributes: {"item":null,"id":null,"post_id":null,"index":"","name":"_location_address","separator":", ","parse_shortcodes":""}
Info: Data received from cache. Filter wpv-post-field-meta-_location_address applied. Filter wpv-post-field-_location_address applied.

Can you help with using Events Manager plugin to display events on our map?

#2748623

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please share problem URL and admin access details and what view you are using to display the map and events.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2748691

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - this is more related to Events Manager plugin about how to get the location details.

Here is the Doc that shows information about how you can get the related location details of particular event - you can use such placeholders with the shortcode "location":
- hidden link
- hidden link

To get the related location ID we use the shortcode: wpv-post-field name='_location_id']

Now, we will use this location ID and pass it as shortcode attribute "location" using "location" shortcode.

For example:

Location Address: <p> [location location='[wpv-post-field name='_location_id']']#_LOCATIONADDRESS[/location]</p>
Location Town: <p> [location location='[wpv-post-field name='_location_id']']#_LOCATIONTOWN [/location]</p>

As shared before you can use any placeholder mentioned with the following Doc to get the Location address information:
- hidden link

It also offers the Map Lat and Long placeholders:
- hidden link

So we can display the map marker using Lat and Long as given under:

 [wpv-map-marker map_id='map-events' marker_id='marker-[wpv-post-id]' lat="[location location='[wpv-post-field name='_location_id']']#_LOCATIONLATITUDE[/location]" lon="[location location='[wpv-post-field name='_location_id']']#_LOCATIONLONGITUDE[/location]"]
          [/wpv-map-marker]

I hope this is enough iinformation that should help you to fix the issue.

#2748692

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - this is more related to Events Manager plugin about how to get the location details.

Here is the Doc that shows information about how you can get the related location details of particular event - you can use such placeholders with the shortcode "location":
- hidden link
- hidden link

To get the related location ID we use the shortcode: wpv-post-field name='_location_id']

Now, we will use this location ID and pass it as shortcode attribute "location" using "location" shortcode.

For example:

Location Address: <p> [location location='[wpv-post-field name='_location_id']']#_LOCATIONADDRESS[/location]</p>
Location Town: <p> [location location='[wpv-post-field name='_location_id']']#_LOCATIONTOWN [/location]</p>

As shared before you can use any placeholder mentioned with the following Doc to get the Location address information:
- hidden link

It also offers the Map Lat and Long placeholders:
- hidden link

So we can display the map marker using Lat and Long as given under:

 [wpv-map-marker map_id='map-events' marker_id='marker-[wpv-post-id]' lat="[location location='[wpv-post-field name='_location_id']']#_LOCATIONLATITUDE[/location]" lon="[location location='[wpv-post-field name='_location_id']']#_LOCATIONLONGITUDE[/location]"]
          [/wpv-map-marker]

I hope this is enough iinformation that should help you to fix the issue.