Skip Navigation

[Resolved] Common fields shared across various CPTs and forms

This support ticket is created 2 years, 5 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: Asia/Hong_Kong (GMT+08:00)

This topic contains 6 replies, has 2 voices.

Last updated by Jay 2 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#2419131

Jay

Hi, is it better for each custom post type to have its own phone & address fields or should there be a common address and contact details form for everyone. So fields like country and county don't need to be repeated everywhere? It also maybe easier to set access for what members/non-members can see.
Thanks
J

#2419665

Hello,

There isn't such kind of built-in feature within Toolset Maps plugin, you might consider custom codes:

You can get the coordinates values from custom address field:
https://toolset.com/documentation/customizing-sites-using-php/functions/#address
FIELD_LATITUDE and FIELD_LONGITUDE

Then setup custom codes to get the country value from above coordinates values, for example:
https://stackoverflow.com/questions/14314183/get-country-name-from-latitude-and-longitude

#2419911

Jay

OK i didn't explain my question properly.

I need the field "crew position" which comes from a taxonomy. In posts and in sign up forms. Do i need to create the field in both post forms and in user forms?
So there would be the same field in 2 places. Or 2 fields with the same name.
Thanks

#2420377

WordPress users don't support custom taxonomies, so you can only use "crew position" taxonomy in post form.
Here is a document about "How to Create Custom Searches and Relationships for Users in WordPress":
https://toolset.com/course-lesson/how-to-create-custom-searches-and-relationships-for-users/
For your reference.

#2420381

Jay

Sorry, I still need help.
Do I need to create "name" as a custom field for post forms so its available to posts and user forms so its available for sign up.

#2420393

Jay

Your link does explain how I take registration in 2 parts. Basic from WP and then a CPT for extra information about a user. Then display users full profile from 2 different sources.

#2420395

Jay

My issue is resolved now. Thank you! Thanks Luo