Skip to:

[Resolved] Show Username next to Display Name

  • packjazz


    I would like to keep the friendliness of Display Names along with the practical function of the @username by displaying both side by side like: “Display Name (@username)” anytime the name appears in an activity. I would rather do this using a filter of some sort, and not going in and modifying the template files directly. Can anyone help?

    I’m on the latest version of WordPress and BuddyPress, 3.9.1 and 2.0.1 respectively. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

  • Henry Wright


    Hi @packjazz

    I don’t think a filter is appropriate in this case. Editing the templates is the best approach in my opinion.

    bp_displayed_user_username() will display the displayed member’s username and bp_displayed_user_fullname() will output the displayed member’s display name.



    In that case, my next question would be, on which template file would I add this so it will show in all activity feeds? I spent a bit of time looking and couldn’t find it. BTW I’m not using a theme with Buddypress support.


    Henry Wright


    BTW I’m not using a theme with Buddypress support

    That’s not a problem because since BP 1.7 you can create your own very easily. Check out this article on the BP Template Hierarchy for info on how templates work. If you have any questions or come across any problems then I suggest you open a separate topic for each different issue.



    Hey @packjazz, did you end up figuring out where to input this code? I’m trying to accomplish this same functionality each time a user’s name is shown beneath their avatar in a reply they make within a topic.



    I want my members to be able to change their @username or I want to make them the same as their username. I tried the plugins mentioned in most forums yet it still does not work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Show Username next to Display Name’ is closed to new replies.
Skip to toolbar