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
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
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?
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
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
My issue is resolved now. Thank you!