Skip Navigation

[Resolved] Map List showing posts – locate on 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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 4 replies, has 2 voices.

Last updated by Minesh 2 years ago.

Assisted by: Minesh.

Author
Posts
#2587399

Tell us what you are trying to do?
I have a list of custom posts showing on a map which is all fine but I'd like clicking on the post title to show the location in the above map and open the popup or hint if thats possible. I'm not displaying the posts in a single view so using the title as a link to the single post entry isn't a factor.

Is there any documentation that you are following?

Is there a similar example that we can see?
There is an example shown on a different page on the dev site, hidden link this is using a different plugin which I'm trying to replicate so I can just use Toolset.

What is the link to your site?
hidden link

#2587499

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

As I understand - you have a page where you display map with its associated posts:
- hidden link

Now - what you want is a button that should be displayed with every item lets say "show on map" and when that button/link is clicked it should display related popup on the map. is that correct?

#2587503

Hi Minesh
I'd be happy with the title of the location in the list below the map being a link that will then show the location on the map when clicked rather than an additional button, but if the button is the easier option then with is fine.

Thanks

#2587515

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please share admin access details and let me review what we can do.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2587543

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I've added the "Fields and Text" block and added the following code to display the marker and "show on Map" button:

[wpv-map-marker map_id='map-11' marker_id='marker-[wpv-post-id]' marker_title='[wpv-post-title]' marker_field='wpcf-location-address']
[wpv-post-link]<br />
[wpv-post-featured-image]
<br />

[/wpv-map-marker]
<a href="#" class="js-wpv-addon-maps-focus-map" data-map="map-11" data-marker="marker-[wpv-post-id]">Show on Map</a>

We have to add the marker this way as we will have to set the marker ID so I've deleted the marker added from the map block.