How to Set a Minimum Word Count for WordPress Posts?

0
175

Are you looking for a way to set a minimum word count for WordPress? 

The application of some standards in your multi-author website is a must to ensure top-ranked articles. At the same time, setting a minimum word count prevents the author to post thin content and is compelled to meet the word demand by mentioning all the necessary content. 

Here in this article, we have mentioned the reason to set a minimum word count and detailed steps to do so.

Why Set a Minimum Word Count for WordPress Posts? 

The content of the website should be informative so that users are benefited from your website. For this, your content should be professional and you should focus on maintaining the quality of the content. This will ensure the ranking of the site. You can set minimum word count as one of the standards, with the help of this we can block the author from publishing less content for informative articles. 

There is no exact word count for the posts. However, we mainly focus on the longer one. The positive effect of longer content is it provides detailed information and is SEO friendly. Also, it is ranked well in Google Search Console. You need to create excellent user interference in order to gain more traffic.  

Let’s start the ways to set minimum word count for WordPress:

Ways to Set a Minimum Word Count Using Plugin

Using a plugin to set word count is the easiest way to tackle this problem. There are varieties of plugins to help you out. But in this article, we are using the free version of PublishPress Checklists. 

PublishPress Checklists are useful to set the task that the author should complete before posting the article. This includes the addition of the minimum or the maximum word count too. In addition to this, the plugin also has its premium version with many more features.

Firstly, install and activate the plugin PublishPress Checklist. If you wish to get more detailed information you can check out our tutorial on “How to Install a Plugin on your WordPress website?

Set a minimum word count for WordPress posts.

After the activation of the plugin. Navigate to Checklists from the WordPress admin panel. Here you can set the word count for your post with the help of the “Number of words in content” option.

Set a minimum word count for WordPress posts.

Next, you need to choose whether you want to make the above setting Disable, Required, or recommended. 

Note: Recommended means it is not compulsory for the author to meet the word count for the post. However, the  Required option obliges you to complete the set task. Click on the required option through the drag and drop menu.

Set a minimum word count for WordPress posts.

Moreover, there is a box “Who can ignore the task?”, you need to select the option through the drag and drop menu. This action permits the selected authority to ignore the task.

Set a minimum word count for WordPress posts.

Save the changes.

Set a minimum word count for WordPress posts.

For instance, a warning icon will appear in the publish button, if your author tries to publish the post without fulfilling the word count.

Set a minimum word count for WordPress posts.

 Hence, you have successfully set the word count for WordPress. 

Ways to Set a Minimum Word Count Without Plugin 

The alternate method to set word count is using codings. Here, you need to add code in function.php files of the WordPress theme. We would not recommend you to use this method as small errors can break down the entire website. Only the expert can use the method to tackle the problem.

Code Snippets is the plugin that helps you to add codes without having fear of website collapse. It adds the custom code as well as saves the system from breakdown. Also, keeps the track of any snippet you add to your site. 

You need to follow the following steps:

  • Install and activate Code Snippets plugins.
  • Navigate to Snippets >> Add New in the dashboard.
  • All you need to do is copy the following code and paste it into your new snippet below the Code area. 
12345678function minWord($content){    global $post;    $content = $post->post_content;    if (str_word_count($content) < 100 ) //set this to the minimum number of words    wp_die( __(‘Error: your post is below the minimum word count. It needs to be longer than 100 words.’) );}add_action(‘publish_post’, ‘minWord’);
  • Lastly, save the changes and activate the code. The code will carry on its work.
  • Undoubtedly, a warning icon will appear if your author tries to publish a post without meeting the word set.

Wrapping Up

We have mentioned two ways to set a minimum word count for WordPress. You can follow any of the ways mentioned above. Surely, the result will not disappoint you. We hope the article was helpful for you.

Also, check out our other tutorial “How to Limit the Number of Posts in WordPress RSS Feed?” for more information regarding WordPress. Let us know your queries, confusions in the comment section below.   

LEAVE A REPLY

Please enter your comment!
Please enter your name here