Display specific BuddyPress user’s avatar

Print out User Avatar from User ID in Buddypress.

echo bp_core_fetch_avatar ( array( 'item_id' => $member_id, 'type' => 'full' ) )


This code will display the user avatar by user ID and also make the avatar a clickable link to their profile.


// replace the number in the first line with the userID that you want.
$member_id = bp_core_get_userid( '1' )

<a href="<?php echo bp_core_get_user_domain( $member_id ) ?>" 

title="<?php echo bp_core_get_user_displayname( $member ) ?>">

echo bp_core_fetch_avatar ( array( 'item_id' => $member_id, 'type' => 'full' ) ) ?></a>

Leave a Reply

Your email address will not be published. Required fields are marked *