- サイトデザイン工事中です。ご意見をお寄せください。
- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
テンプレートタグ/the author posts
提供:WordPress Codex 日本語版
< テンプレートタグ
投稿者の公開した投稿の総数を表示します。下書きや非公開のものは数えられません。このタグはループ内で使用する必要があります。
使い方
<?php the_author_posts(); ?>
使用例
投稿者の名前と投稿数を表示します。
<p><?php the_author(); ?> has blogged <?php the_author_posts(); ?> posts</p>
Harriett Smith has blogged 425 posts.
パラメータ
このタグはパラメータをとりません。
関連
the_author, the_author_link, the_author_posts, the_author_posts_link, wp_list_authors, wp_dropdown_users, the_author_meta
最新英語版: WordPress Codex » Function Reference/the_author_posts (最新版との差分)