WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. shaulbarlev1
    Member
    Posted 5 months 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 5 months ago #

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

  3. shaulbarlev1
    Member
    Posted 5 months ago #

    Ok, how?

  4. bemdesign
    Member
    Posted 5 months 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 5 months 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 5 months ago #

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

  7. Jose Castaneda
    Member
    Posted 5 months ago #

    Have you looked into using the User API?

Reply

You must log in to post.

About this Topic