Skip to:
Content
Pages
Categories
Search
Top
Bottom

Recent Post plugin

  • Avatar of rogerwhitson
    rogerwhitson
    Member

    @rogerwhitson

    Hi everyone,

    If you look at my website (http://britts.lcc.gatech.edu), you’ll see that I have a list of recent posts with the author name on the right side of the page. I’d like to have, instead, a list of recent posts that include the author’s buddypress avatar. Anyone know of a plugin or an easy way I can do this?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Pass the user id as the “item_id” parameter in bp_core_fetch_avatar().

    This function is located in /bp-core/bp-core-avatars.php.

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    @rogerwhitson – In response to this, you add the bp_core_fetch_avatar() function in your recent post loop.

    It would look something like this:

    ` $user_id ) ); ?>`

    I’m guessing that the recent posts loop is a widget; you’d have to add the code above into the widget’s code somewhere.

    You would also have to pass the $user_id properly in the loop.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.