the_author_posts_link

Definition:
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.

Parameters

  • 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() ) ),

		get_the_author()

	);

	echo apply_filters( 'the_author_posts_link', $link );

}

2979

the_author_posts

Definition:
function the_author_posts() {}

Display the number of posts by the author of the current post.

Source code

function the_author_posts() {

	echo get_the_author_posts();

}

2977

the_author_nickname

Definition:
function the_author_nickname() {}

Display the nickname of the author of the current post.

Source code

function the_author_nickname() {

	_deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'nickname\')' );

	the_author_meta('nickname');

}

2975

the_author_msn

Definition:
function the_author_msn() {}

Display the MSN address of the author of the current post.

Source code

function the_author_msn() {

	_deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'msn\')' );

	the_author_meta('msn');

}

2973

the_author_meta

Definition:
function the_author_meta($field = '', $user_id = false) {}

Retrieve the requested data of the author of the current post.

Parameters

  • string $field: selects the field of the users record.
  • int $user_id: Optional. User ID.

Defined filters

  • the_author_$field
    apply_filters('the_author_' . $field, get_the_author_meta($field, $user_id)

Source code

function the_author_meta($field = '', $user_id = false) {

	echo apply_filters('the_author_' . $field, get_the_author_meta($field, $user_id), $user_id);

}

2971