get_the_author_link

Definition:
function get_the_author_link() {}

Retrieve either author’s link or author’s name.
If the author has a home page set, return an HTML link, otherwise just return the author’s name.

Source code

function get_the_author_link() {

	if ( get_the_author_meta('url') ) {

		return '<a href="' . get_the_author_meta('url') . '" title="' . esc_attr( sprintf(__("Visit %s’s website"), get_the_author()) ) . '" rel="external">' . get_the_author() . '</a>';

	} else {

		return get_the_author();

	}

}

1799

get_the_author_lastname

Definition:
function get_the_author_lastname() {}

Retrieve the last name of the author of the current post.

Return values

returns:The author’s last name.

Source code

function get_the_author_lastname() {

	_deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'last_name\')' );

	return get_the_author_meta('last_name');

}

1797

get_the_author_ID

Definition:
function get_the_author_ID() {}

Retrieve the ID of the author of the current post.

Return values

returns:The author’s ID.

Source code

function get_the_author_ID() {

	_deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'ID\')' );

	return get_the_author_meta('ID');

}

1795

get_the_author_icq

Definition:
function get_the_author_icq() {}

Retrieve the ICQ number of the author of the current post.

Return values

returns:The author’s ICQ number.

Source code

function get_the_author_icq() {

	_deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'icq\')' );

	return get_the_author_meta('icq');

}

1793

get_the_author_firstname

Definition:
function get_the_author_firstname() {}

Retrieve the first name of the author of the current post.

Return values

returns:The author’s first name.

Source code

function get_the_author_firstname() {

	_deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'first_name\')' );

	return get_the_author_meta('first_name');

}

1791