Skip to:
Content
Pages
Categories
Search
Top
Bottom

Blog post avatar help

  • Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    I searched but the only thing that comes up is stuff about the blog directory avatar. I need to change the individual blog post user avatar to that of bp and not use a gravatar.

    I saw it posted here before but search is failing me.

    The code:

    ?php echo get_avatar( get_the_author_email(), ’50′ ); ?

    Is this pulling a gravatar and if So how do I change it so it pulls bp member avatar?

Viewing 1 replies (of 1 total)
  • Avatar of Brajesh Singh
    Brajesh Singh
    Participant

    @sbrajesh

    replace that line with this one

    <?php
    global $post;
    echo bp_core_fetch_avatar( array( 'item_id' => $post->post_author, 'type' => 'thumb', 'width' => 50, 'height' => 50));
    ?>

    Hope it helps

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.