Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_post_author_avatar to display authors full size avatar in sub blog

Viewing 2 replies - 1 through 2 (of 2 total)
  • @tislam100

    Member

    Can anyone answer this? Is there a way?

    @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();
    }
    }
    `

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘bp_post_author_avatar to display authors full size avatar in sub blog’ is closed to new replies.
Skip to toolbar