We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Add-Ons
default app icon

Category Count

By Caleydon Ltd.
Navigation
Description

Displaying the number of the entries associated to each category.

  • ExpressionEngine Category Count plugin

Features

  • easy installation
  • compatibility: ExpressionEngine 4.x, 5.x, 6.x, 7.x

Installation

  1. Make sure, you are running ExpressionEngine version 4.x, 5.x, 6.x or 7.x.
  2. Upload the whole category_count folder into /system/user/addons/ folder.
  3. Go into the Add-On Manager in your admin area and install it.
  4. Add code into your template - see a code example.

Changelog

  • Version 1.1.2 - 03/08/2022
    * Updated release for ExpressionEngine 7.x
  • Version 1.1.1 - 12/31/2021
    * added svg icon
    * added README.md file in order to display documentation directly in the EE control panel
  • Version 1.1.0 - 03/09/2020
    * Updated release for ExpressionEngine 6.x
  • Version 1.0.0 - 12/16/2018
    * Initial release for ExpressionEngine 5.x & 4.x

Tag

{exp:category_count cat_id="7" status="open|closed" expired="yes"}

Parameters

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.

Code example

<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>

Information
Version 1.1.2
Last Update 7 months ago
Compatibility EE 7, 6, 5, 4
License Commercial
Links
  • Documentation
  • Change Log
  • Support
ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.