wp_list_authors - WordPress*リファレンス

リストを表示するブログの作者(ユーザ) 、およびユーザーが作成した場合、すべての投稿には、その作者の名前は自分の投稿へのリンクとして表示されます。

原文(翻訳元):⇒Displays a list of the blog’s authors (users), and if the user has authored any posts, the author name is displayed as a link to their posts. Optionally this tag displays each author’s post count and RSS feed link.

タグ使用方法

<?php wp_list_authors('arguments'); ?>

デフォルト用法

$defaults = array('optioncount' => false, 'exclude_admin' => true, 'show_fullname' => false,'hide_empty' => true,'feed' => , 'feed_image' => );

既定の設定を使用して、作者のリストを表示してください。

デフォルトでは、使用方法を示します:

<?php wp_list_authors(); ?>

原文(翻訳元):⇒By default, the usage shows:

  • Does not display the count of the number of posts
  • Excludes the ‘admin’ author from the list
  • Does not display the full name (first and last) but displays the author nickname
  • Excludes users with no posts
  • No author feed text is displayed
  • No author feed image is displayed

ポストのフルネームと数を書きます。

この例はフルネーム(姓名)と各作者のためのポストの数でサイトの作者のリストを表示します。 また、デフォルトで、それは、アドミン作者を除いて、ポストなしで作者を隠して、RSS配信かイメージを表示しません。

原文(翻訳元):⇒This example displays a list of the site’s authors with the full name (first and last name) plus the number of posts for each author. Also, and by default, it excludes the admin author, hides authors with no posts, and does not display the RSS feed or image.

<?php wp_list_authors('show_fullname=1&optioncount=1'); ?>

harriett(42)
Sally Smith (29)
Andrew Anderson (48)

引数

optioncount

(論理演算子) 各作者から発行されたポストの数を表示してください。
オプションは以下の通りです。

原文(翻訳元):⇒(boolean) Display number of published posts by each author. Options are:

exclude_admin

(論理演算子) 作者リストから’admin’(ログインはadminである)アカウントを除いてください。

オプションは以下の通りです。

原文(翻訳元):⇒(boolean) Exclude the ‘admin’ (login is admin) account from authors list. Options are:

show_fullname

(論理演算子) 作者の完全な(最初と最後)名前を表示。
誤っているなら、あだ名を表示します。
オプションは以下の通りです。

原文(翻訳元):⇒(boolean) Display the full (first and last) name of the authors. If false, the nickname is displayed. Options are:

hide_empty

(論理演算子) 0つのポストがある作者を表示しない。
オプションは以下の通りです。

原文(翻訳元):⇒(boolean) Do not display authors with 0 posts. Options are:

feed

(string) 各作者のRSS配信へのリンクに表示するテキスト。

デフォルトはテキストではありません、そして、配信は全く表示しませんでした。

原文(翻訳元):⇒(string) Text to display for a link to each author’s RSS feed. Default is no text, and no feed displayed.

feed_image

(string) feed画像のためのPath/ファイル名。
これは、各作者のRSS配信へのリンクとして機能して、配信パラメタに優越します。

原文(翻訳元):⇒(string) Path/filename for a graphic. This acts as a link to each author’s RSS feed, and overrides the feed parameter.

関連テンプレートタグ

the_author,the_author_description, the_author_login, the_author_firstname, the_author_lastname, the_author_nickname, the_author_ID, the_author_email, the_author_url, the_author_link, the_author_icq, the_author_aim, the_author_yim, the_author_msn, the_author_posts, the_author_posts_link, list_authors, wp_list_authors

Home » 執筆者タグ » wp_list_authors - WordPress*リファレンス