Skip Navigation

[Resolved] Highlight current post on a map with all posts

This support ticket is created 4 years, 8 months ago. 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)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 4 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#1620279

I have a map showing all the locations and I would like to have the present post highlighted, for example:
hidden link

I've been looking at the last part of https://toolset.com/2018/02/toolset-maps-features-in-reference-sites-viewing-geolocation-and-filtering-by-distance-in-action/ but I don't get it, and it's before the block editor.

Right now I'm using a view made in the classic editor and publish it as a block on the page template. Is it possible to use this setup and get the current place highlighted?

Grateful for any hints.

#1620967

Hello,

Yes, it is possible to style(highlight) the current post in a post the post view, for example you can try these:
Edit the post view (ID: 4146), in view's loop, find and edit the marker shortcode [wpv-map-marker ...]

Use [wpv-conditional] shortcode to check if it is current post, then display a different marker icon, see our document:
https://toolset.com/documentation/user-guides/views/displaying-brother-pages/#5
sectoin "5. Highlight the currently displayed page"