Site icon Eval

Easily Get Word Count Stats in WordPress by these 3 Methods

WordPress Word Count Stats: You can’t predict your blog’s eventual readership at the outset. Things like the total number of posts and comments on a post are intriguing. WordPress doesn’t make it simple to view your word count as you type; the counter is hidden at the end of the editing process. Here, you’ll learn how to get WordPress’s aggregate word count statistics, allowing you to examine word counts for individual authors, post types, and more.

Why Track Word Count?

The word count of a webpage may be helpful. The number of words you’ve posted on your blog may be the only metric of importance to you. There might be additional reasons for you to maintain a record. Freelancers’ access to a range of pricing options and improved task management are examples.

Word counts for individual webpage parts may also be monitored. Counting the total number of times a certain set of words is used in a text might be helpful in some situations. Percentages might be used to demonstrate this. Writers can improve their fluency and avoid repetitive usage of keywords by keeping track of and following this data.

Lastly, it’s a good idea to maintain tabs on the total number of words from various writers, publications, and even the calendar month. Occasionally, making such details on the page may take work.

Method 1: Using WordPress Block Editor to know Word Count

To view the word count of a post or page, use the block editor in WordPress.

Method 2: Using a Plugin to know Word Count Stats

This tool can tell you the total number of words in a given document, whether a single article, a series, or your entire website. It’s possible to get in-depth data using WordPress Word Count. Several variables determine the total number of words produced by this plugin.

Method 3: Using Code to know the Word Count Statistics in a WordPress Post

In addition to a spreadsheet, a coding system may be used to keep track of word counts. Using this code example, the word count will be shown next to the post’s title on the All Posts page. This is a great way to determine which of your posts are the shortest in terms of word count or to discover which of your articles are the longest. If you edit your site’s code, the All Posts page will show how many words are in each post. It is recommended that you develop a plugin or use a code snippets plugin for your site.

Regardless of whatever choice you choose with, the following code must be present:

add_filter('manage_posts_columns', 'themelooks_add_column');
functionthemelooks_add_column($themelooks_wordcount_column) {
    $themelooks_wordcount_column['themelooks_wordcount'] = 'Word
return $themelooks_wordcount_column;
//Link the word count to our new column//
   global $post;
   switch ($name)
     case 'themelooks_wordcount':
        //Get the post ID and pass it into the get_wordcount
            $themelooks_wordcount =themelooks_get_wordcount($post->ID);
            echo $themelooks_wordcount;
functionthemelooks_get_wordcount($post_id) {
     //Get the post, remove any unnecessary tags and then perform
the word count//
     $themelooks_wordcount = str_word_count( strip_tags(
strip_shortcodes(get_post_field( 'post_content', $post_id )) ) );
      return $themelooks_wordcount;

When you’re done making changes, you’ll be able to save them. In addition, under Posts > All Posts, you’ll see a new column with the word count.


This tutorial focused on how to compile word counts for WordPress posts. You can better grasp WordPress’s word count and how it may be used to develop a sensible SEO plan.

Article Category: ,
Exit mobile version