2024年07月08日 建站教程
如何利用wordpress中the_author_posts()函数获取当前作者的文章数量,下面web建站小编给大家简单介绍一下具体实现代码!
函数源码:
function the_author_posts() {
echo get_the_author_posts();
}
实现代码:
<p><?php the_author(); ?> 发布了 <?php the_author_posts(); ?> 篇文章</p>
本文链接:http://so.lmcjl.com/news/8072/