- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
「テンプレートタグ/the author link」の版間の差分
提供: WordPress Codex 日本語版
< テンプレートタグ
細 (en:Template Tags/the_author_link 2007年4月16日 (月) 21:37 MichaelH 版) |
(和訳/管理パネルのユーザ設定画面の日本語表記を入れること。) |
||
1行目: | 1行目: | ||
− | = | + | <div id="Description"> |
+ | == 説明 == | ||
+ | </div> | ||
− | + | このテンプレートタグ '''<code>the_author_link</code>''' は、記事の著者のウェブサイトへのリンクを表示します。'''ウェブサイト'''フィールドは、ユーザプロフィール([[管理パネル|Administration]] > [[管理パネル#Your_Profile|Profile]] > [[:en:Your_Profile_SubPanel|Your Profile]])で設定します。リンクテキストは、著者のプロフィールの '''Display name publicly as''' フィールドです。このタグは [[:ja:The Loop|The Loop]] 内でのみ使えます。 | |
− | + | このテンプレートタグは WordPress '''2.1 以上'''でのみ使えます。 | |
− | + | <div id="Usage"> | |
+ | == 使い方 == | ||
+ | </div> | ||
− | + | <?php the_author_link(); ?> | |
− | + | <div id="Example"> | |
+ | == 用例 == | ||
+ | </div> | ||
− | + | 著者のプロフィールの '''Display name publicly as''' フィールドの名前を、著者のウェブサイト URL へのリンク付きで表示します。この例では、著者の表示名は James Smith です。 | |
− | + | ||
− | + | <p>Written by: | |
+ | <?php the_author_link(); ?></p> | ||
− | + | 表示結果: | |
− | = | + | <div class="example">Written by: [[#Example|James Smith]]</div> |
− | + | <div id="Parameters"> | |
+ | == パラメータ == | ||
+ | </div> | ||
− | == Related == | + | このタグにパラメータはありません。 |
+ | |||
+ | == 変更履歴 == | ||
+ | |||
+ | * [[Version 2.1|2.1]] : 新規テンプレートタグ | ||
+ | |||
+ | <div id="Related"> | ||
+ | == 関連 == | ||
+ | </div> | ||
{{Tag Author Tags}} | {{Tag Author Tags}} | ||
{{No Param Tag Footer}} | {{No Param Tag Footer}} | ||
+ | |||
+ | {{DEFAULTSORT:the_author_link}} | ||
+ | [[Category:wp2.1]] | ||
[[en:Template Tags/the_author_link]] | [[en:Template Tags/the_author_link]] |
2008年3月7日 (金) 00:14時点における版
このテンプレートタグ 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()
関数リファレンス、テンプレートタグ目次もご覧ください。