How to Get Word Count Statistics in WordPress (3 Ways)

Want to get word count stats in WordPress?

When writing a post, you can have a specific word count that you aim to achieve. Additionally, monitoring your word count stats can give you insights like which post length is driving the most traffic and engagement.

In this article, we will show you how you can view detailed word count statistics in WordPress.

How to Get Word Count Statistics in WordPress

Why get word count statistics for your WordPress website?

There are many reasons why you might want to get the word count for your WordPress website.

If you’re a freelance writer, you may charge per word, or your clients may have strict word count targets that you must meet.

If you have added multiple authors to your WordPress blog, monitoring their word count stats can help you identify which authors are contributing the most to your website.

This overview can help you manage your multi-author WordPress blog more efficiently. For example, you can reward the author with the highest word count or schedule meetings with underperforming writers.

Even if you are the only person working on a website, word count statistics can still be interesting. By looking at how your word count has changed over time, you may be able to identify patterns and ways to be more productive.

With all that in mind, let’s look at different ways to get word count stats in WordPress. If you prefer to jump straight to a particular method, you can use the links below.

Method 1. How to Check Word Count on a Post in WordPress

The WordPress block editor makes it easy to see the word count for any page or post.

Simply click on the “i” icon at the top of the screen, and WordPress will display some basic stats for the page or post, including the word count.

Get Word Count in WordPress Block Editor

Even better, this word count will update automatically as you write.

If you have a word limit, this is a quick and easy way to make sure you don’t go over that limit.

Method 2. Get Detailed Word Count Statistics in WordPress with a Plugin

Sometimes you might want to see word count stats for a particular author, post type, or even your entire website.

The easiest way to get these detailed statistics is to use the Word Count WP connect. This plugin shows how many words you have written based on month, author and post type.

If you use custom post types, WP Word Count can also show stats for your custom posts.

First, you will need to install and activate the plugin. If you need help, please see our guide on how to install a WordPress plugin.

Once you’ve done that, go to Word Count » Statistics. Before you can get your statistics, you will need to click on the “calculate” link.

Calculating the word count for your WordPress site

WP Word Count will ask you if you want to count words in all your content or only count content created within a certain date range.

To calculate the total word count for your entire site, click the “Count all content on this site at once” option. Then go ahead and click Calculate Word Count.

Get Word Count Statistics in WordPress

After a few moments, you should see a “The word count was calculated successfully” message.

WP Word Count will now continue to automatically calculate your stats as you add more posts and pages to your site. This means you won’t have to click the “calculate” link every time you want to see the latest word count stats.

Now, whenever you want to check your stats, you can access Word Count » Statistics. To see the total word count for all your content, click the All Content tab.

On this screen, you’ll see the total word count for the different post types, split into published and unpublished content.

Word count statistics in the WordPress dashboard

“Total Words” is your total word count across all content types.

This number combines both your published and unpublished content, so it is not necessarily the number of words visitors will see live on your website.

The WP Word Count Plugin

This screen also displays a separate word count for published and unpublished content.

If you want to see the word count for specific months, just click on the “Monthly Stats” tab. This can help you spot trends, including your most productive months and when you wrote fewer words compared to other months.

Monthly Word Count Statistics in WordPress

If you have multiple people writing for your WordPress blog, you might want to take a look at the “Author Stats” tab.

This allows you to explore your site’s word count statistics by author.

Author Word Count Statistics in WordPress

You can also track the traffic that each of your authors brings to your website. To do this, you can check out our guide on setting up author tracking in WordPress.

By monitoring these important metrics on your WordPress site, you can identify what is working on your website and what is not.

You can then use this information to refine your content calendar to drive even more visitors to your website and earn money blogging online with WordPress.

Method 3. How to Add Word Count Statistics in WordPress Using Code

Another option for tracking word count is a code solution. This code snippet will display the word count next to each message on the Posts » All Posts filter.

Added word count to WordPress dashboard

It’s an easy way to spot the longest posts on your site or check for posts that don’t meet the required word count.

To display a word count on the All Posts screen, you will need to add code to your site. We recommend doing this by creating a site-specific plugin or using a snippets plugin.

Whichever option you choose, you will need to add the following code:

add_filter('manage_posts_columns', 'wpbeginner_add_column');
function wpbeginner_add_column($wpbeginner_wordcount_column) {
    $wpbeginner_wordcount_column['wpbeginner_wordcount'] = 'Word Count';
    return $wpbeginner_wordcount_column;
//Link the word count to our new column//
add_action('manage_posts_custom_column',  'wpbeginner_display_wordcount'); 
function wpbeginner_display_wordcount($name) 
   global $post;
   switch ($name)
     case 'wpbeginner_wordcount':
		//Get the post ID and pass it into the get_wordcount function//
            $wpbeginner_wordcount = wpbeginner_get_wordcount($post->ID);
            echo $wpbeginner_wordcount;

function wpbeginner_get_wordcount($post_id) {
     //Get the post, remove any unnecessary tags and then perform the word count// 
     $wpbeginner_wordcount = str_word_count( strip_tags( strip_shortcodes(get_post_field( 'post_content', $post_id )) ) );
      return $wpbeginner_wordcount;

You can then save your changes.

Now if you visit the Posts » All Posts screen, you will see the word count in a new column.

We hope this guide helped you learn how to get word count statistics in WordPress. You might also want to learn how to set up Google Analytics goals for your WordPress site or check out our list of the best email marketing services for small businesses.

If you liked this article, subscribe to our Youtube channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Leave a Comment

Your email address will not be published.