Display logged in users avatar in BuddyPress

Just a simple snippet that will let you display the currently logged in users avatar. Just place this snippet within a template file in the location you wish to display it. Also notice that you can change the avatar size with width and height but also class.

Code Snippet:

echo bp_core_fetch_avatar( array(
'item_id' => bp_loggedin_user_id(),
'width' => 50,
'height' => 50,
'class' => 'avatar',

Comments  Leave a Reply

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!