ExpressionEngine 7.5 has been Released! Learn More!
Displaying the number of the entries associated to each category.
{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="https://expressionengine.com/blog">{category_name}</a> ({exp:category_count cat_id="{category_id}" status="open" expired="yes"})</li> {/exp:channel:categories} </ul>
Version | 1.1.2 |
Last Update | 2 years ago |
Compatibility | EE 7, 6, 5, 4 |
License | Commercial |
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.