Skip Navigation

[Resolved] filter map markers by custom post type

This support ticket is created 3 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.
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: Africa/Casablanca (GMT+01:00)

This topic contains 0 replies, has 1 voice.

Last updated by amandaD 3 years, 9 months ago.

Assisted by: Jamal.

Author
Posts
#1995233

I have a page that shows a map with a tabbed list of 4 different custom post types. I would like a way to filter the map markers so the user can toggle on/off different markers for different post types. I know this can be done with a view and filter, but I have had to do this page in PHP because of some complex grandparent-grandchild relationship queries.

Is there a filter or hook that I can use, or perhaps some javascript, to hide/show specific map markers?