我能得到一个特定的类别(3)这样发布的文章数量:获得职位的数量
<?php
$theID = 3;
$postsInCat = get_term_by('id','' . $theID . '','category');
$postsInCat = $postsInCat->count;
echo $postsInCat . " posts in this category";
?>
但我现在也需要做在一个单独的声明是获取一个特定的类别(3)只是被删除的帖子的数量。
在此先感谢。
布拉沃,这个伎俩。谢谢。 – user3256143 2014-11-03 22:13:21