Skip Navigation

[Resolved] Using the map to plot businesses

This support ticket is created 3 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 3 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#1611131

I have a business directory with a map element. I would like to create a view where the map is at the top of the page and all the businesses plot on the map with a search option underneath where i could filter by taxonomy (say pubs) and it would only show pubs. When someone clicks on the pin on the map it goes to the single listing. Would be good if listings also appeared under the map as the filters are changed....

Bit like this....

hidden link

Any ideas or pointers welcome 🙂

hidden link

#1611813

Hello,

It is possible with Toolset plugins, for example, you can follow our document to display the map and markers with Views,
https://toolset.com/documentation/user-guides/maps/display-on-google-maps/how-to-display-custom-search-results-on-a-map/

for example, edit the page you mentioned above:
hidden link
Find and edit the view block, outside the view's loop, display a map shortcode:
[wpv-map-render map_id="my-map"]

Within view's loop, display the marker shortcode:
[wpv-map-marker map_id="my-map" marker_id="my-marker-[wpv-post-id]" marker_title="[wpv-post-title]" marker_field="wpcf-my-address-field"][wpv-post-link][/wpv-map-marker]

please replace "my-address-field" with your custom address field slug.

More help:
https://toolset.com/documentation/user-guides/maps/maps-shortcodes/#wpv-map-marker
https://toolset.com/documentation/user-guides/maps/maps-shortcodes/#wpv-map-render

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.