How to Display WordPress Total Published Post Count
Here’s a simple little snippet that displays the number of your total published posts on your WordPress site.
If you want to display how many posts you’ve published in your sidebar, you would add this to your sidebar.php file or any other file, such as footer, header, etc.
<?php echo wp_count_posts()->publish; ?>
Free VideoWhy 100 is NOT a Perfect Google PageSpeed Score (*5 Min Watch)Learn how to use Google PageSpeed Insights to set realistic goals, improve site speed, and why aiming for a perfect 100 is the WRONG goal.
Just enter your email address and we’ll send you a link to your free content. You’ll also be taken straight to the video after hitting the button below. Enjoy!