WordPress.org

Forums

Set public display name to "First-name Last-name" by default (7 posts)

  1. shaulbarlev1
    Member
    Posted 1 year ago #

    I have no idea how to do this, I've looked over the web for some time and found nothing.
    Setting it per-user, one by one, is not what I'm looking for.
    Can It be set automatically when the user registers?
    Please help.

  2. wpfan1000
    Member
    Posted 1 year ago #

    You can develop a custom page template which gets the current user's name and displays it.

  3. shaulbarlev1
    Member
    Posted 1 year ago #

    Ok, how?

  4. bemdesign
    Member
    Posted 1 year ago #

    Thinking out loud... I suppose you could add custom fields to the user profile and then make those fields a required part of the registration process. Then you can build out the logic to use these fields in place of the public display name. Exactly how to implement that...not sure - it definitely would require some in-depth review of the WordPress codex!

  5. shaulbarlev1
    Member
    Posted 1 year ago #

    Yeah, I have custom fields for the first and last name, but I have absolutely no idea how to make them show up by default.

  6. Evan Herman
    Member
    Posted 1 year ago #

    How have you created the custom fields? Using the ACF plugin? Or through coding it yourself?

  7. Have you looked into using the User API?

Topic Closed

This topic has been closed to new replies.

About this Topic