- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
テンプレートタグ/the author link
提供: WordPress Codex 日本語版
このテンプレートタグ the_author_link
は、記事の著者のウェブサイトへのリンクを表示します。ウェブサイトフィールドは、ユーザプロフィール(Administration > Profile > Your Profile)で設定します。リンクテキストは、著者のプロフィールの Display name publicly as フィールドです。このタグは The Loop 内でのみ使えます。
このテンプレートタグは WordPress 2.1 以上でのみ使えます。
使い方
<?php the_author_link(); ?>
用例
著者のプロフィールの Display name publicly as フィールドの名前を、著者のウェブサイト URL へのリンク付きで表示します。この例では、著者の表示名は James Smith です。
Written by: <?php the_author_link(); ?>
表示結果:
Written by: James Smith
パラメータ
このタグにパラメータはありません。
変更履歴
- 2.1 : 新規テンプレートタグ
関連
作成者タグ:
the_author(),
get_the_author(),
the_author_link(),
get_the_author_link(),
the_author_meta(),
get_the_author_meta(),
the_author_posts(),
get_the_author_posts(),
the_author_posts_link(),
get_author_posts_url(),
get_the_modified_author(),
the_modified_author(),
wp_dropdown_users(),
wp_list_authors()
関数リファレンス、テンプレートタグ目次もご覧ください。