Turbo SEO Tools Website will be sold. If you are interested to purchase check details

How to Change WordPress author permalink structure?


How to Change WordPress author permalink structure?

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.

The default WordPress author permalink structure for authors is /author/name. For example, on WPbeginner author URL is www.wpbeginner.com/author/wpbeginner/

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 

Source

Sazzad Opu

Authored By Sazzad Opu

I am Sazzad Opu, a knowledgeable and qualified blogger. Here you can see my skills which give you brief ideas on understanding all the concepts with different themes. I adore writing a blog on many topics, like Search Engine Optimization, Digital Marketing, Social Media marketing, How to Blog, etc.


leave a comment
Please post your comments here.