Skip Navigation

[Resolved] How to direct users to the search result if they click a marker on the map.

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/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 1 year, 1 month ago.

Assigned support staff: Waqar.

Author
Posts
#2232955

Please pass this ticket to Waqar or Nigel.

Refering to this ticket: https://toolset.com/forums/topic/search-results-not-present-on-the-map-starting-from-page-2/.

How can users be directed to the search result if they click a marker on the map? Now, if I click a marker (read: a specific address) I am not being refered to the search result.

#2233183

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting us and I'd be happy to assist.

I checked the page at {yourwebsite.com}/acquisitie-opportuniteiten-professionele-kopers-extra-filters/ and noticed that this was the shortcode being used in the view's loop, for the map markers:


[wpv-map-marker map_id='map-22' marker_id='marker-[wpv-post-id]' marker_field='wpcf-adres'][/wpv-map-marker]

As there is no content provided between the opening and closing "wpv-map-marker" shortcode tags, no content was shown on the map marker's click.
( ref: https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-marker )

I've included the post link shortcode [wpv-post-link] between the marker shortcode tags and you'll see that the post's link is now showing when any marker is clicked:


[wpv-map-marker map_id='map-22' marker_id='marker-[wpv-post-id]' marker_field='wpcf-adres' marker_title='title']
[wpv-post-link]
[/wpv-map-marker]

The visitors can use that link, to go to the original single post page and you can replace [wpv-post-link] shortcode with any desired information that you'd like to show, in the map marker pop-up.

regards,
Waqar