Hello there
I'm getting crazy with the map.
I'm able to create a map within blocks, showing items.
But when I'm trying to create the same map within the fields and views instruments, it doesn't work, nothing appear
Is this code correct ?
[wpv-map-render map_id="map-27" map_height="800"][wpv-map-marker map_id='map-26' marker_id='marker-27' marker_field='wpcf-map-restaurant'][/wpv-map-marker][/wpv-map-render]
Thank you for your help
KR
Stefano
Hello,
You will need to use the same "map_id" value in both map and marker shortcode, for example:
[wpv-map-render map_id="my-map" map_height="800"][/wpv-map-render]
[wpv-map-marker map_id='my-map' marker_id='marker-27' marker_field='wpcf-map-restaurant'][/wpv-map-marker]
More help:
https://toolset.com/documentation/user-guides/maps/maps-shortcodes/#wpv-map-marker
map_id. Mandatory. The unique ID for the map where this marker will be rendered. Must be a string.
Hello
I was able to show the map using views.
With this code
[wpv-view name="list-of-apartments" toolset-maps-distance-value origin_source='url_param' postmeta='wpcf-map-apartments' postmeta_id='$current_page']
I was trying to filter a view but it doesn't work.
Following this info https://toolset.com/forums/topic/show-posts-close-to-the-current-one/ same problem
Can you help ?
KR
Stefano
Dear Stefano,
I assume the original question of this thread is resolved, according to our support policy, we prefer one question one ticket, for the new question, please check the new thread here:
https://toolset.com/forums/topic/i-was-trying-to-setup-distance-filter-on-a-view/