• Hi,

    so I am using author pages on my website and currently, if you click on one other, it shows their username in the URL. How do I change that so it would show their Real name or at least their nickname? Showing the username is not very secure since hackers only have to guess the password then.

    do77

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter do77

    (@do77)

    I just realized that url might not be the right word. I was more talking about the permalink. Right now it looks like this:

    http://mywebsite.com/author/username

    and I want to change it to:

    http://mywebsite.com/author/$curauth->display_name;

    Can anyone help?

    Ideally the nickname should become the “nicename” and it should figure in “the_author_posts_link”.

    Unfortunately WordPress doesn’t do that way. Even though the nickname or the display name gets displayed in the blog’s metadata, the link-text shows only the username which is not a desirable situation.

    To get the nickname or the display name to be part of the link (as indicated by you), you’ll have to edit the database – edit “user_nicename” in table -> “wp_users”. Pundits will frown upon me for having suggested this, but before poking into the database, please make a backup.

    May be someone else has a more elegant method to suggest.

    Cheers!

    S.K

    Thread Starter do77

    (@do77)

    Hi kichu,

    thanks a lot for your response! But I really shouldn’t change anything in my database, lol 🙂 It would be a desaster!

    There must be an easier way to do it. I have seen many blogs that have it that way and I just don’t think they all changed their databases.

    Hope someone can help!

    Thread Starter do77

    (@do77)

    Well okay, I don’t know how you guys think, but in my opinion this is a serious security issue. I mean we all create new admin accounts and delete the default account so our username wouldn’t be ‘admin’. That’s why I think it shouldn’t be so easy to figure out the login names of my/our users. Not everyone is just a contributor with low access permissions.

    Hi do77,

    I wrote exactly the same en another topic.

    WordPress show in web browser:
    mydomain.com/author/user_login (admin) when the function the_author_posts_link() is used.

    When It should be:
    mydomain.com/author/display_name
    Function the_author() is used and show page error no found.

    It’s no logic than WordPress show to everybody my user_login when i change it for security.

    Anyone know any solutions?

    Sorry, my english is bad.

    http://wordpress.org/support/topic/260393?replies=8#post-1395820

    Do you solve the problem?

    I hope you understand me.
    Thank you

    snurk

    (@snurk)

    Check your other topic 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[author.php] Show real name in URL instead of Username’ is closed to new replies.