Tag: output buffering

How to Create a Shortcode in WordPress to Count All Posts with Some Categories Excluded

How to Create a Shortcode in WordPress to Count All Posts with Some Categories Excluded

If you’re looking for a way to count all posts on your WordPress site while excluding posts in specific categories, a shortcode is a great solution. By creating a shortcode, you can easily display the post count wherever you want on your site, such as in a page, a post or widget and navigation menu. […]