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.
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