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
1 Answer
Reset to default 0 +50You 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
版权声明:本文标题:customization - Display User ID instead of Name or Username 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742192665a2430503.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论