Title: the_author_link
Published: April 25, 2014
Last modified: May 20, 2026

---

# the_author_link( bool $use_title_attr = true )

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/the_author_link/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/functions/the_author_link/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/functions/the_author_link/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/the_author_link/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/the_author_link/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/functions/the_author_link/?output_format=md#user-contributed-notes)

[ Back to top](https://developer.wordpress.org/reference/functions/the_author_link/?output_format=md#wp--skip-link--target)

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

## 󠀁[Description](https://developer.wordpress.org/reference/functions/the_author_link/?output_format=md#description)󠁿

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

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/the_author_link/?output_format=md#parameters)󠁿

 `$use_title_attr`booloptional

Whether to add a title attribute.

Default:`true`

## 󠀁[Source](https://developer.wordpress.org/reference/functions/the_author_link/?output_format=md#source)󠁿

    ```php
    function the_author_link( $use_title_attr = true ) {
    	echo get_the_author_link( $use_title_attr );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/author-template.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/author-template.php#L287)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/author-template.php#L287-L289)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/the_author_link/?output_format=md#related)󠁿

| Uses | Description | 
| [get_the_author_link()](https://developer.wordpress.org/reference/functions/get_the_author_link/)`wp-includes/author-template.php` |

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

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/the_author_link/?output_format=md#changelog)󠁿

| Version | Description | 
| [7.0.0](https://developer.wordpress.org/reference/since/7.0.0/) | Added `$use_title_attr` parameter. | 
| [2.1.0](https://developer.wordpress.org/reference/since/2.1.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/functions/the_author_link/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/functions/the_author_link/?output_format=md#comment-content-596)
 2.   [Codex](https://profiles.wordpress.org/codex/)  [  11 years ago  ](https://developer.wordpress.org/reference/functions/the_author_link/#comment-596)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fthe_author_link%2F%23comment-596)
    Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fthe_author_link%2F%23comment-596)
 4. **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.
 5.     ```php
        <p>Written by: 
        <?php the_author_link(); ?></p>
        ```
    
 6. Which displays as:
 7. Written by: [James Smith](http://example.com)
 8.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fthe_author_link%2F%3Freplytocom%3D596%23feedback-editor-596)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fthe_author_link%2F)
before being able to contribute a note or feedback.