Skip Navigation

[Resolved] How to show user custom fields in bbpress user profile?

This support ticket is created 3 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 3 years ago.

Assigned support staff: Nigel.

Author
Posts
#1384135

Hello,

We are using bbpress for forum.

We have created some custom user fields that we want to show or add in bbpress user profile.

Please help to show user custom fields in bbpress user profile, and user must able to edit the fields in there profile.

Thank you.

#1384261

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

You would need to edit bbPress's PHP templates to modify the fields that are displayed for user profiles, it isn't something Toolset can help you with, I'm afraid.

If you have made custom user fields with Types and want to display those via PHP then you can use standard WordPress functions to retrieve the field values to output them, you just need to be aware that Types fields are saved with a 'wpcf-' prefix, so if you have a custom user field "favourite-colour" that would be saved in wp_usermeta with a key of 'wpcf-favourite-colour'.

You can also use the Types API function types_render_usermeta to output fields, as described here: https://toolset.com/documentation/customizing-sites-using-php/functions/

For more information about editing bbPress templates you would need to consult their documentation: hidden link