Skip Navigation

[Resolved] Can't get the map function to properly work

This support ticket is created 4 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by kerimF 4 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#1495131
toolset.PNG

Hi there!

I'm trying to add maps functionality to my site. I want to display the location of the trainers I'm hosting on my site, for custom search. I created a view, in which I implemented the map. But the results aren't showing. Can you tell me what I'm doing wrong here?

Thanks!

Greetings

#1495181

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kerim,

Thank you for getting in touch.

Based on your screenshot the issue seems to be that you have added the map marker shortcode outside of the <wpv-loop> tags.

Add the marker shortcode within the loop tags and it should start displaying the items on the map.

Please let me know if this helps.

Thanks,
Shane

#1495185

The problem now is that the map is showing under every result. I just want the map to show once, with all the search results underneath it.

And also, is it possible to automatically filter with a radius around the user's location?

#1495195

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2020-02-05 at 4.36.01 PM.png

Hi Kerim,

The reason for this is that you placed the Map shortcode in the view loop as well.

You should place only the marker shortcode i.e the [wpv-map-marker] shortcode.

For the distance filter, when you go to your view and edit it to add a new filter there should be an option to add a distance filter. See Screenshot.

Please let me know if this helps.
Thanks,
Shane

#1495773

My issue is resolved now. Thank you!