Show Total Number of Posts in WordPress

Are you looking for how to Show Total Number of Posts in WordPress? Then you are at the right website. By showing a total number of article enhance the trust of the user on your website and show that you are consistent to manage and maintain the data.

In this article, we are going to share how easily you can display the total number of post in WordPress.

1 Using Plugin to Show Total Number of Posts in WordPress

This is the easiest and reliable method for all the user who doesn’t have knowledge of programming. First, you need to install and activate simple blog stats plugin which you can easily download from the following link.

Simple Blog Stats

After the activation of simple blocks that plugin you have to visit setting and then simple blog stats to configure the plugin.

This plugin will allow you to use many other useful WordPress that such as the comments, number of users, pages, and publish posts.

You can easily display these stats on any page and post by using the shortcodes which this plugin will provide you in the following image you can observe the shortcodes.

Show Total Number of Posts in WordPress

You can simply copy the code and paste in any WordPress post and a page with you want to show a total number of post in WordPress.

In the following image, you can observe that we have used the shortcode [sbs_posts] and save it in the widget area of a sidebar and you can observe the output in the following image.

Show Total Number of Posts in WordPress

If you want to show all the stats regarding WordPress website then you can use the following shortcode.

It will represent all the stats of your website like you can observe in below image.

Show Total Number of Posts in WordPress

2 Display Total Number of Posts in WordPress Manually

This method requires that user must have little bit programming background so that code can be configured correctly. You have to add the code to your WordPress website.

First, you have to copy the following code and then paste into your themes function.php which you can easily found from the appearance > editor.

This code will use to display a total number of post in WordPress website whenever template tag wpb_total_posts get called.

Now you have to call the above function where you want to show a total number of post in WordPress websites such as widget area, header or footer. You just have to add following code where you want to show a total number of posts.

If you don’t want to display a total number of post in WordPress by using template tag then you can go for shortcodes which will do the same work.

Now you have to copy paste the following code into the themes function.php with the little variation.

By adding the above quote you become able to add the shortcode [total_posts] to show a total number of post in WordPress website.

We have tried to resolve your problem regarding how you can show a total number of post in WordPress website. If you like or effort then don’t forget to share it with your friends.

If you want to write for us we are warmly welcome your guest articles, for further information you can contact us.

SHARE