# get_the_author_posts_link()

URL: https://chugunov.pro/api-wordpress/functions/get_the_author_posts_link/
Проверено на WordPress 6.9, обновлено 06.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией WordPress.

Тип: функция.
Появился в версии: 4.4.0.

## Сигнатура

```php
get_the_author_posts_link(): string
```

## Описание

Возвращает ссылку в формате HTML, используя get_author_posts_url() .

## Возвращаемое значение

`string`

## Исходный код

Файл: `wp-includes/author-template.php:328`

```php
function get_the_author_posts_link() {
	global $authordata;

	if ( ! is_object( $authordata ) ) {
		return '';
	}

	$author = get_the_author();
	/* translators: %s: Author's display name. */
	$title = sprintf( __( 'Posts by %s' ), $author );

	$link = sprintf(
		'<a href="%1$s" rel="author">%2$s</a>',
		esc_url( get_author_posts_url( $authordata->ID, $authordata->user_nicename ) ),
		$author
	);

	/**
	 * Filters the link to the author page of the author of the current post.
	 *
	 * @since 2.9.0
	 * @since 7.0.0 Added `$author` and `$title` parameters.
	 *
	 * @param string $link   HTML link.
	 * @param string $author Author's display name.
	 * @param string $title  Text originally used for a title attribute.
	 */
	return apply_filters( 'the_author_posts_link', $link, $author, $title );
}
```

## История изменений

- 7.0.0 — Removed title attribute.
- 4.4.0 — Introduced.

## Связанные

Использует: [`get_author_posts_url`](https://chugunov.pro/api-wordpress/functions/get_author_posts_url/), [`get_the_author`](https://chugunov.pro/api-wordpress/functions/get_the_author/), [`__`](https://chugunov.pro/api-wordpress/functions/__/), [`esc_url`](https://chugunov.pro/api-wordpress/functions/esc_url/), [`apply_filters`](https://chugunov.pro/api-wordpress/functions/apply_filters/).
Используется в: [`the_author_posts_link`](https://chugunov.pro/api-wordpress/functions/the_author_posts_link/).

Оригинал в официальной документации: https://developer.wordpress.org/reference/functions/get_the_author_posts_link/
