Skip Navigation

[Resolved] Types custom user fields

This support ticket is created 4 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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by christianM-16 4 years ago.

Assisted by: Minesh.

Author
Posts
#2132949

Hello, I have updated Types from outdated version (1.8.11 ) to the latest. I want to improve the compatibility of my old custom code.

I used to "get_post_meta( "strasse", array( "user_id" => $user->ID ) )" to pull data from Types: hidden link hidden link hidden link and everything works fine

now I updated to fresh version of Types and I can't see these fields: hidden link

Do I need to call these fields from Types differently?

#2133187

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

To get the user meta - you should have to use the function: get_user_meta
- https://developer.wordpress.org/reference/functions/get_user_meta/

If you want to use the Types way, you should use the function: types_render_usermeta()
- https://toolset.com/documentation/customizing-sites-using-php/functions/
[you should check the example given with every field type.]

#2133305

My issue is resolved now. Thank you!