the_author_link()
Display either author’s link or author’s name.
Description Description
If the author has a home page set, echo an HTML link, otherwise just echo the author’s name.
Source Source
File: wp-includes/author-template.php
function the_author_link() { echo get_the_author_link(); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
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.
Which displays as:
Written by: James Smith