This support ticket is created 4 years, 9 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.
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.
Hi,
My client hidden link requires a new map page showing the locations of all the restaurant, cafe, and shops posts (Types CPTs) that she's added to her site.
I've added the Toolset Maps plugin and enabled her API key. The new Address field is working on each custom post as it should but I need a bit of help outputting the map in a new template file.
I don't use Views, I'm still doing everything programatically in the template files, so need to know:
1. How to output a map showing ALL the markers added for Restaurants, Cafes and Shops CPTs. These markers should (on click) display a tooltip/box containing further info and a link to the single post .
2. How to customise the marker icons (if possible).
Hi Shane
The page needs to display a map showing the location markers for all the Restaurants, Cafes, and Shops posts. Each marker's popup box should contain the post title and a link to the relevant single post. Is this possible?
If so, how do I get the map shortcode? (I know how to use the do_shortcode part) - it needs to display in a new template file using PHP / loop to show all the markers?
However using the do_shortcode you will need to pass everything into the shortcode manually. So you would need to pass the id's into the marker shortcode manually as well.
Hi Shane
Thanks. I've been using Types for years and have always done things programatically using render_fields - still haven't got around to trying out Views.
No, other than the fact I've never used it and have been happy doing things in the template files - I just prefer it that way as I'm not keen on core functionality being stored in the database - I'd rather this was in the PHP templates, but no worries.
Suppose it's an opportunity for me to try out Views!