- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
テンプレートタグ/get the author link
このページ「テンプレートタグ/get the author link」は未翻訳です。和訳や日本語情報を加筆してくださる協力者を求めています。
タグ一覧: テンプレートタグ | インクルードタグ | 条件分岐タグ | その他の関数 | Code Reference
使い方: テンプレートタグ入門 | パラメータの渡し方 | 初心者の方へ | その他のテーマ関連資料
Description
This tag returns a link to the Website for the author of a post. The Website field is set in the user's profile (管理パネル > ユーザー > あなたのプロフィール). The text for the link is the author's Profile Display name publicly as field. This tag must be used within The Loop.
Usage
<?php get_the_author_link(); ?>
Parameters
This tag does not accept any parameters.
Example
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:
Changelog
- Since: 3.0.0
最新英語版: WordPress Codex » Template Tags/get_the_author_link (最新版との差分)
Related
作成者タグ: 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()