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 )

Facebook photo

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

Connecting to %s

%d bloggers like this: