DISCLAIMER: this post is older than one year and may not be up to date with latest WordPress version.

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

2 Comments

  1. Never thought about doing that, but that’s a neat way to do it. Thanks!

  2. So simple it isn’t funny. This is why I love WordPress!

Leave a Comment

Your email address will not be published. Required fields are marked *