[Resolved] How can I display the multiple instance of a single Toolset Map address field?
This support ticket is created 3 years 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.
Tell us what you are trying to do?
I try to build a User CPT profile page.
In custom fields, I want to create an Address field with multiple instances where the user can add all his addresses in the world.
Is it possible to display all addresses in different lines?
Is it possible to display a map with a Marker for every single address, with the marker popup address information?
If yes, what should I do to have that?
Thank you
Is there any documentation that you are following?
I don't have found any documentation yet.
Thank you for getting in touch. Is it possible to display all addresses in different lines?
Yes it is possible to do this. Assuming here that you're using the shortcode method to display the address fields then you can use our [wpv-for-each] shortcode.
Essentially this will allow you to loop through each of your fields and displaying them one at a time.
Is it possible to display a map with a Marker for every single address, with the marker popup address information?
This is also possible as well when making use of the wpv-for-each shortcode to list out the addresses.
What you can do is to add the marker inside the wpv-for-each shortcode and assign your address to each of the marker.
Here is an example below.
[wpv-for-each field='wpcf-my-field']
[wpv-map-marker map_id="my-map" marker_id="my-marker" marker_title="This is a marker" address="[types field='address'][/types]" ]This is the content of the marker popup.[/wpv-map-marker]
This should be able to assist you with setting this up. If there are any issues please let me know.
Thanks,
Shane