admin管理员组

文章数量:1326112

I have BuddyPress installed in my WordPress. I don’t want to display the name or username in the profile of member, instead just User ID, like below Avatar instead of member’s name it will just show user ID.

For example:

User ID: 550

This will be in both Members Page and individual profile page.

Note that I don’t want name fields hidden from registration page, a member will enter his/her name but it will be hidden on site so that members will not be able to see each other’s name.

Please guide. Thank you!

I have BuddyPress installed in my WordPress. I don’t want to display the name or username in the profile of member, instead just User ID, like below Avatar instead of member’s name it will just show user ID.

For example:

User ID: 550

This will be in both Members Page and individual profile page.

Note that I don’t want name fields hidden from registration page, a member will enter his/her name but it will be hidden on site so that members will not be able to see each other’s name.

Please guide. Thank you!

Share Improve this question asked Aug 6, 2020 at 2:46 AstroMazAstroMaz 92 bronze badges 3
  • As this is quite a specific requirement, you need to find the template or code that generates those pages and see if there's a sensible way to hook in to the point the output is generated. – mozboz Commented Aug 6, 2020 at 13:06
  • @mozboz can you help me please in doing this? – AstroMaz Commented Aug 7, 2020 at 3:06
  • Anyone please?? – AstroMaz Commented Aug 8, 2020 at 10:01
Add a comment  | 

1 Answer 1

Reset to default 0 +50

You may get more help on this question by asking the Buddypress community directly on their Support forum here.

It looks like you will need to create new copies of the template files that drive these two pages and place them in your Theme folder. These will override the plugin code completely and put you in control of the content. This is important because if you edit the plugin code directly, it may revert to its original state when the plugin updates in future.

The link below describes how to create files in your Theme to override the standard Buddypress designs but you will need to research further as it doesn't answer every question.

Buddypress template hierarchy

Hopefully someone on Buddypress' forum will help you get there!

本文标签: customizationDisplay User ID instead of Name or Username