category_count problem
-
Hi friends,
i’m having problems with this function
on category.phpI’m trying to show the post count using this code:
$cat = get_the_category(); $cat = $cat[0]; echo $cat->category_count;
The problem is:
When I access the category page like “category/category-name” the count is incorrect, but when i go to the page 2 or more like: “category/category-name/page/2” it’s right.Some one had this issue and could help me please?
Thank you
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘category_count problem’ is closed to new replies.