How to Change Author Slug in WordPress and Use Custom Author Slug

author slug

If I use word ‘slug’, it means I am talking about the URL structure. Slug is the URL just after the domain name. In WordPress, we also say it permalink. In WordPress, default author slug is something like this:

This page displays all posts of that author. Few themes also comes with a bio at the top of posts in author pages. If you have WordPress based blog, you can use this URL to access the author page of any user just by adding username at the last. And there is no way to change the permalink structure of author archives. WordPress only allows users to change post archives and use custom URL base. What if you wan to change the permalink structure of author pages. In this post, we are listing few plugins and code snippet for using custom author slug in WordPress.

Also read: How To Remove WordPress Tags & Categories from Google Search Results?

1. Plugin Method:

Most simple method of changing author archive slug is use of plugins. Edit Author slug is a simple plugin.Install the plugin and then visit the plugin settings page (Settings > Edit Author Slug). Her enter new author base slug which you want to use.

You can change this to be look like this

Edit Auhor Slug

2. Code Snippet

You can also change author slug manually by adding following code in functions.php of your WordPress theme.

add_action('init', 'change_author_base');
function change_author_base() {
    global $wp_rewrite;
    $author_slug = 'profile'; // change slug name
    $wp_rewrite->author_base = $author_slug;

Above code will change default author slug to profile. You can modify the above code to use what you want to add in the author slug.

Changing author base slug will never affect the search engine ranking of your website. It is also recommended not to index your archive pages. It may leads to duplicate content issue.

If you have anything to ask, you can comment blow.

Tags: | |

Deepanker Verma is the founder of Techlomedia. He is a tech blogger, developer and gadget freak.

Similar Articles


Leave a comment

Comment policy: We love comments and appreciate the time that readers spend to share ideas and give feedback. However, all comments are manually moderated and those deemed to be spam or solely promotional will be deleted.

2020 UseThisTip | Part of Techlomedia Internet Pvt Ltd Developed By Deepanker