MD Taxonomy Totals
Use a short-code to display post, category or tag totals
MD Taxonomy Totals
Use Case
Using the [mdtt-total-posts] short-code, enables user to display totals by category or tag.
LATEST VIDEOS – 4,630 titles!
There are – 263 in the used car category!
There are – 12 tags for Ford!
Description
Provides a [mdtt-total-posts] short-code to display total published posts, optionally filtered by the parameter – category or tag.
Examples
Example 1
- [mdtt-total-posts] – Shows total number of published posts (all categories)
- Result: "784"
Example 2
- [mdtt-total-posts category="used cars"] – Shows results for the "used cars" category
- Result: "201"
Example 3
- [mdtt-total-posts tag="chevrolet"] – Shows results for the "chevrolet" tag
- Result: "58"
Using [mdtt-total-posts] in your site
- Posts/pages (block editor):
-
- Add a shortcode block
- Paste: [mdtt-total-posts] or [mdtt-total-posts category="news"] or [mdtt-total-posts tag="chevrolet"]
- Widgets (Appearance → Widgets):
-
- Add a text or Custom HTML widget
- Paste: [mdtt-total-posts] or [mdtt-total-posts tag="chevrolet"]