Post Count in Categories
-
I am new to WordPress and to PHP although I have learned alot in the past two months I have been setting up my blog. This forum has helped me more times than I can tell you but I have searched and searched for my particular problem and cannot find an answer.
I use parent categories and sub-categories. I would like to list all of the categories with the sub-categories under them, indented. I have tried all options using list_cats to no avail. So to hack my own problem I just listed each of the parent categories with their sub-categories under as you can see in the sidebar of my blog: https://www.thewellministries.org/blog with the remaining categories listed using list_cats and using exclude to not list the above categories.
By using this method though I cannot get a post count on the categories I have listed individually. I have tried every hack and suggestion found in these forums but none work. (the only one I found that I thought would work was <?php echo $postsincat; ?> but it didn’t either)
Also I have tried the list_cats and exclude for each section but it shows a post count of (0) even if there are posts in the category. Only the first category section shows the post count and all others show (0)s (see sidebar1.php)
I have looked for a post-count plugin but have not found one yet.
Any suggestions?
Thanks,
Kris
- The topic ‘Post Count in Categories’ is closed to new replies.