Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,952
- How-to & Troubleshooting
- 129,225
- Creating & Extending
- 25,784
- Requests & Feedback
- 9,473
- Third Party Plugins
- 9,782
- Showcase
- 3,317
- Ideas
- 1,401
- Miscellaneous
- 9,164
-
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 )
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS