the_author_link

Display either author's link or author's name.

Description

the_author_link(); 

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


Usage

  1. if ( !function_exists( 'the_author_link' ) ) { 
  2. require_once ABSPATH . WPINC . '/author-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = the_author_link(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/author-template.php  
  1. function the_author_link() {