Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Getting User’s Full Name from user_id


Jeff Sayre
Participant

@jeffsayre

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 )

Skip to toolbar