What function is the theme using to get the user’s avatar? get_avatar()?
yes,
echo get_avatar( get_the_author_meta(‘user_email’), $size = ’50’ );
delivers the avatar, but if size>50 it just stretches the thumb. Is there a way to just get the url of the full size avatar?
cheers.
Try this:
`
global $post; // probably don’t need this
$author_id=$post->post_author;
$avatar = bp_core_fetch_avatar( array( ‘item_id’ => $author_id, ‘type’ => ‘full’ ) );
echo $avatar;
`
If you want to specify the height / width you can do this:
`
$avatar = bp_core_fetch_avatar( array( ‘item_id’ => $author_id, ‘type’ => ‘full’, ‘height’=>105,’width’=>105 ) );
`
Yes that does it. Thanks.