Skip Navigation

[Resolved] Create a map showing all the addresses from the products address field

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 2 replies, has 2 voices.

Last updated by Seb Gates 1 year, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#2549017

I'm trying to create a map that shows markers connected to products in the website (for which I've already added a custom address field)

Documentation I'm following is: https://toolset.com/lesson-placement/lesson-placements-1622939-1620853/

What I'm trying to do is very similar to the video in documentation I've shared apart that I just want the map in the page without the view and also I would need to create it with the classic editor and not with blocks.

here the website link: hidden link

Trusting that you can guide me through this, looking forward your reply.

#2549215

Hello,

Yes, you can use classic view to setup the map.

For example:
1) Create a new post view:
- Query posts of your custom post type
- In section "Loop Editor", just after shortcode [wpv-items-found], display map shortcode:
[wpv-map-render map_id="map-1"][/wpv-map-render]
https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-render
- within view's loop, display marker shortcode, like this:

...
		<wpv-loop>
          [wpv-map-marker map_id='map-1' marker_id='marker-[wpv-post-id]' marker_field='wpcf-test-address'][/wpv-map-marker]
		</wpv-loop>
...

https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-marker

#2551065

My issue is resolved now. Thank you!

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