• 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細

このWikiはいつでも誰でも編集できます

「テンプレートタグ/get the author link」の版間の差分

提供: WordPress Codex 日本語版
移動先: 案内検索
(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 ([[Administration Panels|Administration]] > [[Administration Panels#Profile|Profile]] > [[Your Profile SubPanel|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]].
+
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(); ?> %%%
+
<?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.
  
&lt;p&gt;Written by:  
+
<pre>
<?php echo get_the_author_link(); ?>&lt;/p&gt;
+
<p>Written by:  
 +
<?php echo get_the_author_link(); ?></p>
 +
</pre>
  
 
Which displays as:
 
Which displays as:
  
<div style="border:1px solid blue; padding:10px; width: 75%">Written by: [[Template_Tags/the_author_link#Example|James Smith]]</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:Template Tags]]
+
{{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」は未翻訳です。和訳や日本語情報を加筆してくださる協力者を求めています

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:

Written by: James Smith

Changelog

最新英語版: 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()


関数リファレンステンプレートタグ目次もご覧ください。