Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How do I insert the big avatar?

@adambundy

Member

I found a solution for this. Hope it helps someone. Note that I am fetching the value of $user_id earlier in my loop.

`if ( function_exists(‘bp_core_fetch_avatar’) ) {
echo apply_filters( ‘bp_post_author_avatar’, bp_core_fetch_avatar( array( ‘item_id’ => $user_id, ‘type’ => ‘full’, ‘width’ => 120, ‘height’ => 120 ) ) );
} else if ( function_exists(‘get_avatar’) ) {
get_avatar( $user_id, $size = ‘120’);
}`

Skip to toolbar