Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add Nickname to bbp-reply-author


  • designvibe
    Participant

    @designvibe

    Hi,

    I’ve added the nickname field to profile so people can add it.

    Now I need it to display on the topic and replies under bbp-reply-author.

    Everything I’ve tried shows username. Is there a way of tweaking to below to nickname?

    <?php $user = get_userdata( bbp_get_reply_author_id() );
    if ( !empty( $user->user_nicename ) ) {
    $user_nicename = $user->user_nicename;
    echo "@".$user_nicename;
    } ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar