Skip Navigation

[Resolved] Reusable component of a Google map and contact fields below it

This support ticket is created 4 years, 2 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 1 reply, has 2 voices.

Last updated by Jamal 4 years, 2 months ago.

Assisted by: Jamal.

Author
Posts
#1934391

I would like to create a reusable component that consists of a Google map with contact fields below it. I created (custom fields) for (posts). The custom fields are address, longitude, latitude, website URL, email address, and phone number.

1) I'm not sure how I can create the reusable component.
2) Create a component that has a map that picks up the custom address field.
3) Have the component display the website URL, email address, and phone number below it.

#1936069

Hello and thank you for contacting the Toolset support.

Instead of using a reusable component to display these informations, I would suggest that you use a content template. Create a content template and don't assign it to any custom post type. Add a map inside of it, add single fields to it. Then you can reuse this content template inside of other content templates, views, archive templates, or inside of regular posts/pages/etc. Does it make sense?

Otherwise, please provide more details about your use case? Where do you want to reuse this? Can you share examples of URLs?