- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
テンプレートタグ/get the author link
提供: WordPress Codex 日本語版
< テンプレートタグ
2010年4月14日 (水) 00:07時点におけるBono (トーク | 投稿記録)による版 (en:Template Tags/get_the_author_link 15:03, 13 April 2010 Bono 版を翻訳用にコピー/MichaelH 著)
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 (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.
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:
Written by: James Smith
Changelog
- Since: 3.0.0
最新英語版: WordPress Codex » Template Tags/get_the_author_link (最新版との差分)
Related
関数リファレンス、テンプレートタグ目次もご覧ください。