Skip to:
Content
Pages
Categories
Search
Top
Bottom

Avatar link to user profile newspaper

  • @hunhtrunghieu95

    Participant

    Hello all..

    I want to add a link to user avatar..so that when an avatar is clicked it navigates to that users profile,same as <?php post_author_title_link(); ?> does.I tried to add an anchor tag for avatar..but don’t know what values is to be passes in href attribute.

    Please help !

Viewing 1 replies (of 1 total)
  • @pinkishhue

    Participant

    See this info –

    bbp_topic_author_link

    To display just the avatar linked to the member profile you would use:

    <?php bbp_topic_author_link( array( 'sep' => '<br />', 'show_role' => false, 'type' => 'avatar' ) ); ?>

    or for reply author’s:

    <?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => false, 'type' => 'avatar' ) ); ?>

    Hope that helps

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