Description: Displaying the number of articles assigned to each category.
Version: 1.0.0
Category: ExpressionEngine 5.x add-on
Author: Gabriel Schwardy, Caleydon s.r.o. - www.caleydon.com

{exp:category_count cat_id="7" status="open|closed" expired="yes"}
cat_id="3"
The ID for the category that you want to output the number of entries for.
status="open|closed"
Determines the status of entries you want to count. Default setting is "open"
expired="yes"
Will include entries that have expired.
<h3>Categories</h3>
<ul>
{exp:channel:categories channel="News" show_empty="no" style="linear"}
<li><a href="{path='blog'}">{category_name}</a> ({exp:category_count cat_id="{category_id}" status="open" expired="yes"})</li>
{/exp:channel:categories}
</ul>
Do you have an good idea how to improve this add-on? Don't hesitate and write me: addons [@] caleydon.com
Last update: 12/16/2018
Caleydon s.r.o. • 2001–2018