get_the_author_link


get_the_author_link ( $use_title_attr = true )

Parameters:
  • (bool) use_title_attr Optional. Whether to add a title attribute. Default true.
Returns:
  • (string) An HTML link if the author's URL exists in user meta, otherwise the result of get_the_author().
Defined at:
Change Log:
  • 7: .

Description

Retrieves 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.

Related Functions

get_the_author_login, get_the_author_id, get_author_link, the_author_link, get_the_author_aim

Top Google Results

User discussions

wpseek mobile