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

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

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

提供: WordPress Codex 日本語版
移動先: 案内検索
(2.8 新規テンプレートタグ/en:Template Tags/the author meta 14:42, May 24, 2009 Ramiy 版を翻訳用にコピー)
 
(言語間リンク等挿入、リンク調整/未翻訳)
1行目: 1行目:
 +
{{NeedTrans}}
 
== Description ==
 
== Description ==
  
The [[Template_Tags/the_author_meta|the_author_meta]] Template Tag displays the desired meta data for a user. If this tag is used within [[The Loop]], the user ID value need not be specified, and the displayed data is that of the current post author. A user ID can be specified if this tag is used outside [[The Loop]].
+
The '''the_author_meta''' Template Tag displays the desired meta data for a user. If this tag is used within [[The Loop]], the user ID value need not be specified, and the displayed data is that of the current post author. A user ID can be specified if this tag is used outside [[The Loop]].
  
Use [[Function Reference/get_the_author_meta|get_the_author_meta()]] if you need to return (not display) the information.
+
Use [[関数リファレンス/get_the_author_meta|get_the_author_meta()]]/[[:en:Function Reference/get_the_author_meta|en]] if you need to return (not display) the information.
  
Note: [[Template Tags/the_author_meta|the_author_meta]] was first available with [[Version 2.8]].
+
Note: '''the_author_meta''' was first available with [[Version 2.8]].
  
 
== Usage ==
 
== Usage ==
  
%%% <?php the_author_meta( $field, $userID ); ?> %%%
+
<?php the_author_meta( $field, $userID ); ?>
  
 
== Parameters ==
 
== Parameters ==
57行目: 58行目:
 
  &lt;p&gt;The email address for user id 25 is <?php the_author_meta('user_email',25); ?>&lt;/p&gt;
 
  &lt;p&gt;The email address for user id 25 is <?php the_author_meta('user_email',25); ?>&lt;/p&gt;
  
== Change Log ==
+
== 変更履歴 ==
  
Since: 2.8.0
+
* [[Version 2.8|2.8]] : 新規テンプレートタグ
  
 
== Source File ==
 
== Source File ==
  
<tt>the_author_meta()</tt> is located in {{Trac|wp-includes/author-template.php}}.
+
<tt>the_author_meta()</tt> is located in {{BrowseSource|wp-includes/author-template.php|trunk|2.8}}.
  
 
== Related ==
 
== Related ==
  
{{Author Tags}}
+
{{Tag Author Tags}}
  
{{Tag Footer}}
+
{{PHP Function Tag Footer}}
  
[[Category:Template Tags]]
+
{{原文|Template Tags/the_author_meta|72611}}<!-- 14:42, May 24, 2009 Ramiy 版 -->
 +
 
 +
{{DEFAULTSORT:The_author_meta}}
 +
[[Category:wp2.8]]
 +
 
 +
[[en:Template Tags/the_author_meta]]

2009年5月28日 (木) 23:34時点における版

このページ「テンプレートタグ/the author meta」は未翻訳です。和訳や日本語情報を加筆してくださる協力者を求めています

Description

The the_author_meta Template Tag displays the desired meta data for a user. If this tag is used within The Loop, the user ID value need not be specified, and the displayed data is that of the current post author. A user ID can be specified if this tag is used outside The Loop.

Use get_the_author_meta()/en if you need to return (not display) the information.

Note: the_author_meta was first available with Version 2.8.

Usage

<?php the_author_meta( $field, $userID ); ?>

Parameters

$field 
(string) Field name for the data item to be displayed. Valid values:
  • user_login
  • user_pass
  • user_nicename
  • user_email
  • user_url
  • user_registered
  • user_activation_key
  • user_status
  • display_name
  • nickname
  • first_name
  • last_name
  • description
  • jabber
  • aim
  • yim
  • user_level
  • user_firstname
  • user_lastname
  • user_description
  • rich_editing
  • comment_shortcuts
  • admin_color
  • plugins_per_page
  • plugins_last_view
  • ID
$userID 
(integer) If the user ID fields is used, then this function display the specific field for this user ID.

Examples

Display the Author's AIM screenname

Displays the value in the author's AIM (AOL Instant Messenger screenname) field.

<p>This author's AIM address is <?php the_author_meta('aim'); ?></p>

Display a User Email Address

Displays the email address for user ID 25.

<p>The email address for user id 25 is <?php the_author_meta('user_email',25); ?></p>

変更履歴

  • 2.8 : 新規テンプレートタグ

Source File

the_author_meta() is located in 構文エラー: "trunk" は認識できません/src/wp-includes/author-template.php wp-includes/author-template.php.

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()


テンプレートタグへの PHP 関数型パラメータの渡し方関数リファレンステンプレートタグ目次もご覧ください。


最新英語版: WordPress Codex » Template Tags/the_author_meta最新版との差分