Skip Navigation

[Resuelto] map

This support ticket is created hace 3 años, 11 meses. 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 3 respuestas, has 2 mensajes.

Last updated by Luo Yang hace 3 años, 11 meses.

Assisted by: Luo Yang.

Autor
Mensajes
#1607361

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

#1607909

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.

#1610537

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

New threads created by Luo Yang and linked to this one are listed below:

https://toolset.com/es/forums/topic/i-was-trying-to-setup-distance-filter-on-a-view/

#1611575

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/

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