Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to get author Avatar only

  • @nprimex1

    Participant

    I’m working on converting a BuddyPress Forums based theme to one that will support bbPress. It’s been a nightmare trying to match up template functions between buddypress and bbPress!

    I’m stuck though … I am trying to pull in the author’s avatar only. The following gets me a small version of the avatar + author name:

    `printf( __( ‘Creator: %1$s’, ‘bbpress’ ), bbp_get_topic_author_link( array( ‘size’ => ’14’ ) ) );`

    However, I’m only interested in the author’s avatar. How do I go about it?

    Thank you

Viewing 1 replies (of 1 total)
  • @nprimex1

    Participant

    Okay figured it out … closing the loop here in case someone needs a solution in the future to this problem.

    This code worked:

    `printf( bbp_get_topic_author_link( array( ‘type’ => ‘avatar’ ) ) );`

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar