TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Jhon-mantila/pluging-wordpress/llms.txt
Use this file to discover all available pages before exploring further.
category_post_count shortcode returns the number of published posts in a WordPress category as a plain integer — no surrounding markup, no labels. Because it outputs only a number, it is designed to be embedded directly inside sentences, headings, or alongside other content. Internally, the shortcode calls get_term_by('slug', ...) to locate the category term and reads the $term->count property, which WordPress keeps up to date automatically. If the category attribute is omitted or the given slug does not match any existing category, the shortcode outputs 0.
Basic Usage
Parameters
The slug of the WordPress category whose post count you want to display. The slug is the URL-friendly identifier WordPress assigns to each category (e.g.,
anime, gaming, noticias). Returns 0 if the attribute is not provided or if no category with the given slug exists.