Skip to:
Content
Pages
Categories
Search
Top
Bottom

Name instead of username

  • @shpitzyl

    Participant

    Hi,
    I want to display the name instead of the username in the user page. I know I need to replace bp_displayed_user_mentionname() in member-header.php. The problem is that I can’t find the function that will display the name.

Viewing 3 replies - 1 through 3 (of 3 total)
  • @lerroy

    Participant

    I have the same problems bump for any solutions ?

    @danbp

    Participant

    @lerroy @shpitzyl,

    FYI, this function will show user_login instead of member_name on the members directory.
    Add it to the theme’s functions.php

    /* Display Username in Directory */
    function my_member_username() {
        global $members_template;
    	
        return $members_template->member->user_login;
    }
    add_filter('bp_member_name','my_member_username');

    Tested on WordPress 3.8.1 – BuddyPress 1.9.2

    @lerroy

    Participant

    @chouf1

    Thanks for the code

    I added to my themes function.php but no luck members directory still shows by username 🙁

    This problem with username / full name seems to be all other these forums in various forms. i am setting up a conference website and users want to find each other buy real names, as usernames dont really identify the user 🙁

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Name instead of username’ is closed to new replies.
Skip to toolbar