the_author_link

Sponsored Link

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

Sponsored Link

This tag displays a link to the Website for the author of a post. The Website field is set in the user’s profile (Administration > Profile > 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.

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

<?php the_author_link(); ?> 

リンクとして著者のウェブサイトURLを表示し、リンクのためのテキストは、著者のプロフィールの公開フィールドとして表示名です。この例では、著者の表示名はジェームズスミスさんです。

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 the_author_link(); ?></p>
Written by: James Smith

the_author_linkのパラメーター

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

This tag does not accept any parameters.

変更ログ

Since: 2.1.0

関連テンプレートタグ

the_author, the_author_link, get_the_author_link, the_author_posts, the_author_posts_link, wp_list_authors, wp_dropdown_users, the_author_meta

Sponsored Link