Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: bp_post_author_avatar to display authors full size avatar in sub blog

@tislam100

Member

Never mind, got it. Had to write a custom function:

`function bp_custompost_author_avatar() {
global $post;

if ( function_exists(‘bp_core_fetch_avatar’) ) {
echo apply_filters( ‘bp_post_author_avatar’, bp_core_fetch_avatar( array( ‘item_id’ => $post->post_author, ‘type’ => ‘full’ ) ) );
} else if ( function_exists(‘get_avatar’) ) {
get_avatar();
}
}
`

Skip to toolbar