Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,011
- How-to & Troubleshooting
- 129,532
- Creating & Extending
- 25,786
- Requests & Feedback
- 9,496
- Third Party Plugins
- 9,784
- Showcase
- 3,316
- Ideas
- 1,405
- Miscellaneous
- 9,170
-
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