get_the_author_link

Sponsored Link

このタグは、投稿の著者のウェブサイトへのリンクを返します。

Sponsored Link

ウェブサイトのフィールドはユーザーのプロフィール(管理>ユーザ>あなたのプロフィール)に設定されています。リンクのテキストは、フィールドとして公に著者のプロフィール表示名です。このタグはループ内で使用されている必要があります。

This tag returns a link to the Website for the author of a post. The Website field is set in the user’s profile (Administration > Users > Your Profile). The text for the link is the author’s Profile Display name publicly as field. This tag must be used within The Loop.

get_the_author_linkのテンプレートタグ使用方法

<?php get_the_author_link(); ?> 

get_the_author_linkのパラメーター

このタグはパラメータを受け付けません。

This tag does not accept any parameters.

リンクとして著者のウェブサイトURLとリンク用テキストは、フィールドとして公に著者のプロフィール表示名を伝える(表示する)例です。この例では、著者の表示名は、ジェームズスミスです。

The example echos (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.

<p>Written by: 
<?php echo get_the_author_link(); ?></p>

Which displays as:

Written by: James Smith

変更ログ

Since: 3.0.0

ソースファイル

get_the_author_link()は、wp-includes/author-template.php内に位置しています。

get_the_author_link() is located in wp-includes/author-template.php

関連テンプレートタグ

the_author(), get_the_author(), the_author_link(), get_the_author_link(), the_author_meta(), get_the_author_meta(), the_author_posts(), the_author_posts_link(), get_author_posts_url(), wp_dropdown_users(), wp_list_authors()

Sponsored Link