How To Change WordPress Author URL Base and Slug

Learn How To Change WordPress Author URL Base, and Slug

By default WordPress Author URL Slug of a particular user is your-site.com/author/slug/.

Here slug is actually your WordPress login username.

Slug is called user_nicename.

Change WordPress Author URL Slug (user_nicename)

  • Go to WordPress Database
  • Select wp_users table
  • Change field user_nicename to balloon (example)
Pay Yearly, Get 2 Months FREE

Your new author url slug will become your-site.com/author/balloon/.

This way you will hide your real WordPress login username from the world and hackers.

Change WordPress Author URL Base

To change your-site.com/author/balloon/ to your-site.com/profile/balloon/

Stop the Bad Habit of putting custom code snippets in functions.php file.

Follow Good Habit and place the below code in WordPress Blog Specific Plugin.

14 Days Free Trial

function change_author_base() {
global $wp_rewrite;
$author_slug = 'profile';
$wp_rewrite->author_base = $author_slug;
}
add_action('init', 'change_author_base');

Here $author_slug can be anything of your choice.

WordPress Consultant

If you want to Hide WordPress Username on your site, contact me.