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 a freelance WordPress developer and a contributing developer to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.

Ready to upgrade your website?

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

Let's Talk