the_author_link()

Displays either author’s link or author’s name.


Description

If the author has a home page set, echo an HTML link, otherwise just echo the author’s name.


Top ↑

Source

File: wp-includes/author-template.php. View all references

function the_author_link() {
	echo get_the_author_link();
}


Top ↑

Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes

  1. Skip to note 1 content
    Contributed by Codex

    Example
    Displays the author’s Website URL as a link and the text for the link is the author’s Profile Display name publicly as field. In this example, the author’s Display Name is James Smith.

    <p>Written by: 
    <?php the_author_link(); ?></p>

    Which displays as:

    Written by: James Smith

You must log in before being able to contribute a note or feedback.