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.
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
My issue is resolved now. Thank you!