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.