function the_author_posts_link($deprecated = '') {}

Display an HTML link to the author page of the author of the current post.
Does just echo get_author_posts_url() function, like the others do. The reason for this, is that another function is used to help in printing the link to the author’s posts.


  • string $deprecated: Deprecated.

Defined filters

  • the_author_posts_link
    apply_filters( 'the_author_posts_link', $link )

Source code

function the_author_posts_link($deprecated = '') {

	if ( !empty( $deprecated ) )

		_deprecated_argument( __FUNCTION__, '2.1' );

	global $authordata;

	if ( !is_object( $authordata ) )

		return false;

	$link = sprintf(

		'<a href="%1$s" title="%2$s" rel="author">%3$s</a>',

		get_author_posts_url( $authordata->ID, $authordata->user_nicename ),

		esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ),



	echo apply_filters( 'the_author_posts_link', $link );



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 1,485 other followers

%d bloggers like this: