Title: get_author_link
Published: April 25, 2014
Last modified: February 24, 2026

---

# get_author_link( bool $display, int $author_id, string $author_nicename ): string|null

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/get_author_link/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/functions/get_author_link/?output_format=md#see-also)
 * [Parameters](https://developer.wordpress.org/reference/functions/get_author_link/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/get_author_link/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/get_author_link/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/get_author_link/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/get_author_link/?output_format=md#changelog)

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

This function has been deprecated since 2.1.0. Use [get_author_posts_url()](https://developer.wordpress.org/reference/functions/get_author_posts_url/)
instead.

Returns or Prints link to the author’s posts.

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

### 󠀁[See also](https://developer.wordpress.org/reference/functions/get_author_link/?output_format=md#see-also)󠁿

 * [get_author_posts_url()](https://developer.wordpress.org/reference/functions/get_author_posts_url/)

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

 `$display`boolrequired

`$author_id`intrequired

`$author_nicename`stringoptional

## 󠀁[Return](https://developer.wordpress.org/reference/functions/get_author_link/?output_format=md#return)󠁿

 string|null

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

    ```php
    function get_author_link($display, $author_id, $author_nicename = '') {
    	_deprecated_function( __FUNCTION__, '2.1.0', 'get_author_posts_url()' );

    	$link = get_author_posts_url($author_id, $author_nicename);

    	if ( $display )
    		echo $link;
    	return $link;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/deprecated.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/deprecated.php#L805)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/deprecated.php#L805-L813)

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

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

Retrieves the URL to the author page for the user with the ID provided.

  | 
| [_deprecated_function()](https://developer.wordpress.org/reference/functions/_deprecated_function/)`wp-includes/functions.php` |

Marks a function as deprecated and inform when it has been used.

  |

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

| Version | Description | 
| [2.1.0](https://developer.wordpress.org/reference/since/2.1.0/) | Deprecated. Use [get_author_posts_url()](https://developer.wordpress.org/reference/functions/get_author_posts_url/)  | 
| [1.2.0](https://developer.wordpress.org/reference/since/1.2.0/) | Introduced. |

## User Contributed Notes

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