Post Pic

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

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!

2 Responses

Feb 03 2013 07:22

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

Feb 10 2013 00:13

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

Trackbacks:

Leave a Comment

* Name, Email, Comment are Required

WP Theme of the week

Sponsored Likebox