How to Disable Author Archives Pages in WordPress

WordPress has made it easier for users to organize their content. But what if you want to disable author archives pages? It’s for SEO friendly website. If you have multiple author in your website, WordPress will automatically create their archive page. 

This article will show you how to disable them.

First you need to login your Cpanel or FTP server. Then navigate to your active Theme directory. Search for function.php file inside the root directory. Edit this function.php file and paste the following code. 

				
					// Remove Author archives
add_action('template_redirect', 'jltwp_adminify_remove_archives_author');
function jltwp_adminify_remove_archives_author()
{
    if (is_author()){
        $target = get_option('siteurl');
        $status = '301';
        wp_redirect($target, 301);
        die();
    }
}
				
			

What if you don’t like to work with code but you want to disable author archive via your Dashboard. Install “WP Adminify” plugin and navigate to WP Adminify > Tweaks > Post / Archives option. Search for “Disable Author Archives” option and enable it.

disable author archives page

This is how you can disable author archives page in WordPress websites. 

Was this article helpful?

© 2021 - Adminify | All rights reserved

WP Adminfy accepted payment methods