GWcode Categories Examples

Here are some examples to demonstrate what you can do with GWcode Categories:

Example 7 - Counting categories

This plugin can also be used to count the number of categories. A couple of examples:

Total number of categories, overall:

{exp:gwcode_categories limit="1"}
	Total: {results_total}
{/exp:gwcode_categories}

Total number of last child categories for channel "example":

{exp:gwcode_categories channel="example" last_only="yes" limit="1"}
	Total: {results_total}
{/exp:gwcode_categories}

Total number of depth 2 categories an entry has been added to:

{exp:gwcode_categories entry_id="30" depth="2" limit="1"}
	Total: {results_total}
{/exp:gwcode_categories}