Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Show Simple Blog Stats on Your WordPress Site

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

Do you want to show stats like the total number of posts, comments, and registered users on your site?

Displaying site statistics like this can show your visitors how quickly your site is growing.

In this article, we will show you how to show simple blog stats on your WordPress site.

Add simple blog stats in WordPress

Why Show Blog Stats on Your WordPress Site?

Building an online community can be a bit difficult for new websites. Getting more traffic and increasing the time users spend on your website requires effort and patience.

Simple blog stats and metrics like the number of registered users, posts, and comments can show other users that your site is growing fast. It encourages user engagement and builds trust.

It also allows you to easily monitor your site’s growth and plan strategy. For example, if your comments are low, then you can try to get more comments on your posts. If you allow user registration, then you can do more to encourage more users to register.

Having said that, let’s take a look at how to easily show simple blog stats on your WordPress website.

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

Adding Simple Blog Stats in WordPress

The first thing you need to do is install and activate the Simple Blog Stats plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, you need to visit Settings » Simple Blog Stats to configure plugin settings.

Simple blog stats settings page

Simple Blog Stats allows you to add WordPress stats using shortcodes and template tags.

You can display all the stats by adding a single shortcode [sbs_blog_stats] in a post, page, or sidebar widget. It will display a list of all your WordPress blog stats.

All blog stats

You can also show specific site stats like the total number of posts by using different shortcodes.

Click on the ‘Shortcodes’ tab to expand it, and you will see the complete list of shortcodes you can use.

Simple blog stats shortcodes

Each shortcode has a description below it that explains what information it will show. You will also see two text fields containing the HTML it will add before and after the information.

For example, using the shortcode [sbs_comments] will output this HTML:

<span class="sbs-count-comments">135</span>

You can then use the .sbs-count-comments class to add custom CSS styles of your own.

You can also change the <span class="sbs-count-comments"> </span> to anything you want.

Don’t forget to click on the ‘Save settings’ button to store your changes.

Here is a list of shortcodes offered by the plugin:

  • [sbs_posts] displays the total number of posts on your site
  • [sbs_pages] displays the total number of pages on your site
  • [sbs_drafts] shows the total number of drafts on your site
  • [sbs_comments] shows the total number of comments, including those approved and those pending approval
  • [sbs_moderated] shows the number of comments pending approval
  • [sbs_approved] shows the number of approved comments
  • [sbs_users] displays the total number of registered users on your site
  • [sbs_cats] shows the total number of categories
  • [sbs_tags] shows the total number of tags
  • [sbs_updated] shows the last updated date and time
  • [sbs_latest_posts] shows the latest post
  • [sbs_latest_comments] shows the latest comments
  • [sbs_blog_stats] displays all blog stats in a bulleted list.

Some of the shortcodes may display information that you probably don’t want to show, like the number of drafts, comments pending approval, and the number of categories and tags.

But you can still create a list of blog stats using individual shortcodes. These shortcodes also come in handy when you just want to show specific stats like the total number of comments or the total number of users on your WordPress site.

Showing user count to encourage more users to register

We hope this article helped you learn how to show simple blog stats on your WordPress site. You may also want to see our guide on how to choose the best website builder or our expert pick of the best analytics solutions for WordPress users.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

3 CommentsLeave a Reply

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.