WordPress

WordPress support

Easy way to show total number of Posts in WordPress website

on Dec 07, 2017
tags: Posts in WordPress website

Do you ever wanted to show the total number of Posts in WordPress Website?We will discuss about showing total number of posts but except specific category.Exhibit total number of articles may help you to  illustrate the flexibility of your blog and inspires users to view for more content.

 Method 1: Show Total Number of Posts in WordPress via Plugin

 This is the simplest method and it is recommended for all the users.

 Firstly you can install and activate the Simple Blog Stats plugin.

Method 2. Manually Show Total Number of Posts in WordPress

 In this method you need to add code to your WordPress site.Take a look at our guide guide on how to copy and paste code in WordPress.

 Firstly you can add this code to your theme's function.php file or a site-specific plugin.

 

function wpb_total_posts() {

$total = wp_count_posts()->publish;

echo ‘Total Posts: ‘ . $total;

}

Then you add   in your theme files.

You can  use the shortcode [total_posts] for displaying total number of posts in any posts or sidebar widgets.

We hope that this article completely guide  you in displaying number of posts on wordpress site. As the above two methods are quite easy to fix your issues.

Read more:2 easy way to show total number of Posts in wordpress website

 

You have also other option of getting help using our WordPress customer service dial, +1 844 897 0441.

 

3 visits |0 Comments|Reply

Related Posts

There are no comments on this post

Write a New Comment on Easy way to show total number of Posts in WordPress website

Please Log In or Register to post comments.

[]