Skip Navigation

[Resolved] Can I combine multiple CPTs with Map Address fields into ONE map

This support ticket is created 3 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: Africa/Casablanca (GMT+01:00)

This topic contains 4 replies, has 2 voices.

Last updated by randomblink 3 years, 8 months ago.

Assisted by: Jamal.

Author
Posts
#1976317

Tell us what you are trying to do?
I am building a website for a Marijuana Grow house. They currently serve MANY dispensaries (shops that sell marijuana). I have created a CPT called Dispensary that has a Custom Field of Address using the Map plugin. If EACH dispensary has it's own address field, is there a way to create a single map that displays ALL dispensaries on it so that users could click on a dispensary and load the page for that dispensary?

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#1976637

Hello and thank you for contacting the Toolset support.

You can display all dispensaries on a map, but when you click on a map marker, it won't redirect you to the dispensary page. A map marker has can display a popup on hover and another popup on click. Then inside one of the popups, you can put a direct link to the dispensary's page. Does it make sense?

Currently, if you are building the map and the view with the blocks editor, we have a known issue that may freeze the editor. Check it here and the workaround to use. https://toolset.com/errata/cannot-add-shortcodes-to-toolset-address-field-marker-popup/

I hope this helps. Let me know if you have any questions.

#1984001

What steps would I take to CREATE that map? I'm not sure HOW I could generate a map with all of the dispensaries.

#1984043

It depends on what editor you are using. If you are using the Blocks editor, you'll add the map using a Map block, and you will need a view to generate the markers for the posts.
If you are using the legacy editor, you can add the map using the user interface, or using shortcodes.

Would you allow me temporary access to your website to help you with it? Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **

Please add details about the address custom field.

#1991213

My issue is resolved now. Thank you!