Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,832
- How-to & Troubleshooting
- 129,806
- Creating & Extending
- 25,867
- Requests & Feedback
- 9,510
- Third Party Plugins
- 9,821
- Showcase
- 3,317
- Ideas
- 1,382
- Miscellaneous
- 9,177
-
You’re making it more difficult than need be.
Just use the function bp_core_get_user_displayname() found in bp-core.php. You can give it a userid and it will spit out the user’s fullname. Just make sure that you echo the output as follows:
echo bp_core_get_user_displayname( $userid )