Passer la navigation

[Résolu] Types custom user fields

This support ticket is created Il y a 4 years, 10 months. 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 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par christianM-16 Il y a 4 years, 10 months.

Assisté par: Minesh.

Auteur
Publications
#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: lien caché lien caché lien caché and everything works fine

now I updated to fresh version of Types and I can't see these fields: lien caché

Do I need to call these fields from Types differently?

#2133187

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: 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!