Saltar navegación

[Resuelto] Where do Custom User Fields Go?

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:
The user has created some user fields but cannot see them when adding or editing a user.

Solution:
User fields are bound to one or more roles. They won't appear on the add user form, but they will appear on edit user or user profile if the user has the correct role(s)

Relevant Documentation:
https://toolset.com/documentation/customizing-sites-using-php/creating-custom-user-profiles/

This support ticket is created hace 4 años, 7 meses. 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)

Este tema contiene 4 respuestas, tiene 2 mensajes.

Última actualización por AlimB3245 hace 4 años, 7 meses.

Asistido por: Jamal.

Autor
Mensajes
#1648575

Tell us what you are trying to do? I just added a custom field in USER TYPES .. first I created a group and then I added a field but then I assumed the Group and the field would appear in the EDIT USER or ADD USER view .. but I couldn't find it there.. normally when there's a delay I clear cache to ensure it's there but I still couldn't see it.. Am I looking in the wrong place?

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#1648883

Hello and thank you for contacting the Toolset support.

Make sure that the user field group is assigned to a role and then make sure the user has that role. Check my screenshot for a group of fields for some roles, and how the fields are displayed in the user profile page(backend) enlace oculto

If this does not help, please allow me temporary access to check your site closely. Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **

#1649077

Hi Jamal

Thanks for the update.. you are absolutely right.. it's working now.. and I plan to put an 'id' field here for my user but I realise that [wpv-current-user info="id"] exists.. so what exactly is this id? Does every wordpress user already have some kind of ID? is it system generated? editable?

Please advise.

Regards,
Alim

#1649213

Every WordPress user has an ID, the ID is autoincremented in the database level and it is not meant to change or be editable.
Check this article it explains a little bit the database tables of WordPress https://codex.wordpress.org/Database_Description

I suppose that you want to have a user field "ID" to identify your users! You should reuse the default WordPress user_id, as it will be unique for every user. And you can then use different roles for your users depending on their interactions with the systems. Below the default roles and capabilities in WordPress https://wordpress.org/support/article/roles-and-capabilities/

With Toolset Access, you can build your custom roles and capabilities. Read more about Toolset Access and its features here https://toolset.com/documentation/user-guides/access-control/

#1649741

My issue is resolved now. Thank you!