- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
「テンプレートタグ/get the author link」の版間の差分
(en:Template Tags/get_the_author_link 15:03, 13 April 2010 Bono 版を翻訳用にコピー/MichaelH 著) |
細 (テンプレートタグガイド挿入、リンク等調整/翻訳者募集中) |
||
1行目: | 1行目: | ||
+ | {{NeedTrans}} | ||
+ | {{テンプレートタグガイド|}} | ||
== Description == | == 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 ([[ | + | This tag returns a link to the Website for the author of a post. The '''Website''' field is set in the user's profile ([[管理パネル]] > [[管理パネル#Users|ユーザー]] > [[Users Your Profile SubPanel|あなたのプロフィール]]). The text for the link is the author's Profile '''Display name publicly as''' field. This tag must be used within [[The Loop]]. |
== Usage == | == Usage == | ||
− | + | <?php get_the_author_link(); ?> | |
== Parameters == | == Parameters == | ||
15行目: | 17行目: | ||
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. | 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. | ||
− | + | <pre> | |
− | + | <p>Written by: | |
+ | <?php echo get_the_author_link(); ?></p> | ||
+ | </pre> | ||
Which displays as: | Which displays as: | ||
− | <div | + | <div class="example">Written by: [[#Example|James Smith]]</div> |
== Changelog == | == Changelog == | ||
30行目: | 34行目: | ||
== Related == | == Related == | ||
− | {{Author Tags}} | + | {{Tag Author Tags}} |
{{Tag Footer}} | {{Tag Footer}} | ||
− | [[Category: | + | {{DEFAULTSORT:Get_the_author_link}} |
+ | [[Category:wp3.0]] | ||
[[en:Template Tags/get_the_author_link]] | [[en:Template Tags/get_the_author_link]] |
2010年4月14日 (水) 00:17時点における版
このページ「テンプレートタグ/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()