count (not using the cn_category), and here is one plugin that I hope helps.
I have just created this simple plugin, it adds a new tag to your templates,
where you can specify a category and it reutrns and shows the number of
posts made in that category, the tag is {catposts|id} where id = the id of the
certain category we want to check, here is an example:
So if your category ID number 1 is "News", you can enter in your template:
- Code: Select all
Category: News ({catposts|1})
And that's what you would see, 23 (for example) is the number of posts you
have in your 'News' category:
- Code: Select all
Category: News (23)
Or, you can make it even smarter, but it would work only if the post have
only one category, {category} gets the name of the category and {category-id}
gets the id of the category (which does not show in templates info for some reason)
here is the example, it would looks the same:
- Code: Select all
Category: {category} ({catposts|{category-id}})
That's is, hope it helps and if you have any questions or ideas how
to make it better/add stuff, I'll be glad to hear
* The plugin is attached to this post, it will be updated later if
there will be any other updates, just download the file, put
it in the plugins folder and activate it
