This topic has 5 replies, 3 voices, and was last updated 9 years by kobrakai75.

  • Author
  • #36339
     kobrakai75
    Participant

    Hi folks

    I’m looking for a way to display the users first name + last name on my BuddyPress (w/Kleo) site.

    I changed the Primary field of “full name” to “first name” and then added my own field for “last name” on the Registration page, so the first and last names of a new user are required to be input into two separate fields.

    I’ve looked on the forum here and in several other places but haven’t found exactly what I’m looking for. I’m hoping someone has figured out a method to combine first name + last name fields like this, so that the full name of a user can be displayed this way throughout the site.

    Any help with this is gratefully appreciated.

    Thanks
    kobrakai75

    #36727
     kobrakai75
    Participant

    Is there a way to achieve this by adding a function or some code that makes bp_member_name always display as first name + last name on the site?

    #36754
     sharmstr
    Moderator

    how about this https://wordpress.org/plugins/buddypress-real-names/

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #36879
     kobrakai75
    Participant

    Hi sharmstr, I’ve tried that plugin but it doesn’t work right – I still only see a first name.

    It also renames the “first name” primary field to “nickname” and you cannot change it.

    #37732
     Abe
    Keymaster

    Hi, you could customize this function trough the filter provided in it. See bp_get_displayed_user_fullname in wp-content/plugins/buddypress/bp-members/bp-members-template.php

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #38148
     kobrakai75
    Participant

    Hi Abe, thanks for pointing me in the right direction, this seems to be what I was looking for.

    The only problem is my lack of php knowledge, is there anyone who could help with customizing the function? I’m sure a LOT of people would make use of this in BuddyPress.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘How-to display user first name + last name’ is closed to new replies.

Log in with your credentials

Forgot your details?