How to redirect your author archive link to your “About” page

January 31, 2013 at 5:01 pm

By default, when someone click on your author posts URL, he is redirected to your author archive page. It is useful on multi-author blogs, but if there’s only one author on your blog, author archives are pointless. Here is a quick tip to redirect your author archive link to your “About” page.

This code have to be pasted into your functions.php file. Don’t forget to replace about on line 4 by the slug used by your “About” page.

add_filter( 'author_link', 'my_author_link' );

function my_author_link() {
	return home_url( 'about' );
}

Thanks to Justin Tadlock for the cool tip!

Tags: