Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_post_author_avatar to display authors full size avatar in sub blog

  • Avatar of Craig
    Craig
    Participant

    @ffdltd

    Hi all.

    I am running WP 3.0.1 with Multisite in sub domains and Buddypress 1.2.

    I am trying to get the blog authors avatars from Buddypress to display on their blogs.

    I have used the following in my template file, which pulls the users avatar over OK, however it pulls the ****-bpthumb.jpg version, whereas I would like it to pull the ****-bpfull.jpg version.

    `bp_post_author_avatar`

    I have tried adding ‘type=full’ with no luck.

    Any ideas how to pull the full avatar version instead of the thumb?

    Cheers! :)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of Towfiq I.
    Towfiq I.
    Member

    @tislam100

    Can anyone answer this? Is there a way?

    Avatar of Towfiq I.
    Towfiq I.
    Member

    @tislam100

    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)

You must be logged in to reply to this topic.