Put user descripton under avatar in whos online
My current code that i have in whos online widget.
<a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></br><center><font size="2"><?php bp_member_name();?></font></center></a>
I would like to add users description under the avatar or nickname.
I think im using wrong code or doing something wrong.
The code i have so far is this but it doesn work.
<?php $user_meta = get_userdata(bp_displayed_user_id());echo($user_meta->description);?>
Whats the correct code? Whats the correct way?
- You must be logged in to reply to this topic.