Navigation überspringen

[Gelöst] map

This support ticket is created vor 4 Jahren, 9 Monaten. 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.

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)

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Luo Yang vor 4 Jahren, 9 Monaten.

Assistiert von: Luo Yang.

Author
Artikel
#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

Neue Threads, die von Luo Yang erstellt wurden und mit diesem verbunden sind, sind unten aufgeführt:

https://toolset.com/de/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/