WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to change author in URL? (6 posts)

  1. Geoff_A
    Member
    Posted 1 year ago #

    I feel like I'm going insane. My user profile looks like this:

    username: geoff
    Nickname: Geoff

    But my author URL looks like this: http://www.mysite.com/author/admin/

    How can I change the URL to /author/geoff/ ?

  2. manojrohtela
    Member
    Posted 1 year ago #

    you can do this by hlp of plugin ....and there are also function fot this.....

    add_rewrite_rule(
    'author/([0-9]+)/?$',
    'index.php?author=$matches[1]',
    'top'
    );

    try this ...add this in your function.php file

  3. esmi
    Forum Moderator
    Posted 1 year ago #

  4. Geoff_A
    Member
    Posted 1 year ago #

    I'm confused. Is there any way to change the author name without rewrite rules or plugins? I see all these other sites with /author/some-cool-name/ and mine is stuck at /author/admin/ (boring!). I want to change it using stock WP.

  5. vjpo
    Member
    Posted 1 year ago #

    Is there any way to change the author name without rewrite rules or plugins?

    You mean a user nicename (slug). Yes, you can edit a database manually in PhpMyAdmin.
    Field to edit is user_nicename in table wp_users

  6. Geoff_A
    Member
    Posted 1 year ago #

    Perfect, thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.