Author archive link pointed to about page

The author name at the top of a post typically points to that author’s archive page (example). You can use the author_link filter to point it to any URL you’d like.

In this case, I have every author link pointed to the site’s /about/ page. You could use the $author_id parameter to use a different URL based on the user (ex: linking to that user’s Website field from their profile).

// Author URL goes to about page
add_filter( 'author_link', function( $link, $author_id ) {
	return trailingslashit( home_url( 'about' ) );
}, 10, 2 );

Bill Erickson

Bill Erickson is the co-founder and lead developer at CultivateWP, a WordPress agency focusing on high performance sites for web publishers.

About Me
Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk