My immunity is strong.

How To Change WordPress Author URL Base and Slug

Learn 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)

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 not so good habit of putting custom code snippets in functions.php file.

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

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.

Join Our Newsletter

Subscribe to get our latest content by email.

    We won't send you spam. Unsubscribe at any time.

    Thank you my dear friend for coming here.