Skip to:
Content
Pages
Categories
Search
Top
Bottom

Showing Username beneath Display Name

  • @marximusmg

    Participant

    Any idea on how to do this? I’m wanting to show each member’s @username directly beneath their Display Name in my forums (just as is shown here).

    Thanks in advance for any help!

Viewing 1 replies (of 1 total)
  • @marximusmg

    Participant

    I was able to accomplish this by inserting the following code

    <?php $user = get_userdata( bbp_get_reply_author_id() );
    if ( !empty( $user->user_nicename ) ) {
    $user_nicename = $user->user_nicename;
    echo "@".$user_nicename;
    } ?>

    beneath the line

    <?php do_action( 'bbp_theme_after_reply_author_details' ); ?>

    in loop-single-reply.php

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