模板标签-the_author_posts()

0条评论

说明

该标签显示某个作者发布的文章总数。状态为“草稿”和“私人”的文章不计入统计范围。该标签必须用在WordPress主循环(loop)中。

用法

<?php the_author_posts(); ?> 

示例

显示作者名和该作者发布的文章总数。

<p><?php the_author(); ?> has blogged <?php the_author_posts(); ?>   
posts</p>  

参数

该函数不接收参数。

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.