[total_categories]

Shortcode displays total categories count on your site.

Attributes

parent
(optional) Parent category ID. Enter zero to count top level categories. Enter current to set to the current category ID. Leave empty to count all categories.
Default: None
hide_empty
(optional) Set to yes if you want to skip empty categories.
Default: no

Examples

Example

[total_categories before="Total top level categories: " parent="0" on_zero="No categories."]

Output

Total top level categories: 2
No comments yet.

Leave a Reply