Your SEO Tip of the Day Use keywords in URL slugs to enhance relevance.
How to Change WordPress author permalink structure?
Use simple tricks to change WordPress author permalink structure of your client's WordPress blog, This snippets change author slug URL Base SEO friendly.
Table of Contents
The default WordPress author permalink structure for authors is /author/name. For example, on WPbeginner author URL is www.wpbeginner.com/author/wpbeginner/
You Might Like: AI Article Generator
If your client required to change author slug to another on like the user, profile, member or another word, you can do the task easily using our simple WordPress snippets in your theme's functions.php file.
Change WordPress author permalink
Add the below snippets to your or your client WordPress theme's functions.php file for Change the Author Slug URL Base without a plugin.
add_action('init', 'cng_author_base');
function cng_author_base() {
global $wp_rewrite;
$author_slug = 'member'; // change slug name
$wp_rewrite->author_base = $author_slug;
}
Note: Look at line number 4. Here, I change author slug as a member. You can use your own.
Thanks
You Might Like: Emoji Cleaner – Remove All Emojis from Text in One Click!