Skip to:
Content
Pages
Categories
Search
Top
Bottom

Recent Post plugin

  • @rogerwhitson

    Member

    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)
  • @r-a-y

    Keymaster

    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.

    @r-a-y

    Keymaster

    @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)
  • The topic ‘Recent Post plugin’ is closed to new replies.
Skip to toolbar