[total_taxonomy]
Shortcode displays total taxonomy terms count on your site.
Attributes
- taxonomy
- (required) Taxonomy name. E.g.:
product_tag
.- Default: None
- parent
- (optional) Parent taxonomy term ID. Enter zero to count top level terms. Leave empty to count all terms.
- Default: None
- hide_empty
- (optional) Set to
yes
if you want to skip empty terms.- Default:
no
- Default:
Examples
Example
[total_taxonomy before="Total product categories: " taxonomy="product_cat" on_zero="No product categories."]
Output
No product categories.
No comments yet.