How to Change Author URL Base in WordPress

By default, Author URL in WordPress looks something similar to  However, you can easily change this to something else by dropping a small amount of code to your functions.php file.

Quick Tip : Restricting Users to View Only Their Own Media Library Items

Use the following code to change the default author base i.e. /author/ to your own custom author base.

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

The above code will change the author base from /author/ to /profile/. So, the URL will look something like


Leave a Comment.