Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,003
- How-to & Troubleshooting
- 129,526
- Creating & Extending
- 25,791
- Requests & Feedback
- 9,496
- Third Party Plugins
- 9,782
- Showcase
- 3,316
- Ideas
- 1,397
- Miscellaneous
- 9,169
-
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