How to Set a Minimum Word Count for WordPress Posts

[agentsw ua=’pc’]

Do you want to set a word count for your WordPress blog posts?

If you have multiple authors on your site, then setting up a minimum word count can help ensure that writers meet content standards and fully answer the reader’s questions.

In this article, we’ll show you how to set a minimum word count for your WordPress posts.

set minimum word count for wordpress posts

Why Set a Minimum Word Count for Your Blog Posts?

Whether you’re creating content yourself or running a multi-author website, you should set certain content standards to ensure top-quality articles.

One of the standards you can introduce is a minimum word count for each WordPress blog post. With WordPress, you can restrict authors from publishing blog posts with thin content and ensure high content quality.

Why would you want to enforce longer posts?

Some research suggests that longer content tends to rank significantly better in search results than short content, which could help you get more traffic to your blog.

That being said, let’s look at how you can set a minimum word count in a WordPress blog.

Method 1: Set a Minimum Word Count Using a Plugin

A simple way to add a minimum word count to your WordPress website is by using a plugin like PublishPress Checklists.

PublishPress Checklists allow you to set tasks that authors must complete before publishing content. This includes adding a minimum and maximum word count on posts and pages.

For this tutorial, you can use the free version of PublishPress Checklists, since it has the features we need. There’s also a premium version available that offers more features like checklists for WooCommerce products.

First, you’ll need to install and activate the PublishPress Checklists plugin. You can follow our step-by-step tutorial on how to install a WordPress plugin for more details.

Upon activation, you’ll need to go to Checklists from your WordPress admin panel. Next, you can set minimum and maximum words for the ‘Number of words in content’ option.

Change PublishPress Checklists settings

After that, you can choose whether you want to make the ‘Number of words in content’ option to be disabled, required, or recommended task from the dropdown menu.

If you select Recommended, then authors can publish articles even if they don’t meet the minimum word count. However, the Required option makes it mandatory to complete the word count task, so go ahead and select the Required option.

Besides that, PublishPress Checklists also lets you add user roles to exclude from meeting the word count requirement. Simply click on the box under the ‘Who can ignore the task’ column and select a user role.

Choose user roles to exclude

When you’ve set the number of words writers should complete, simply scroll down and click the ‘Save Changes’ button.

Save your changes

Now you can go to Posts » Add New to create a new blog post and see the minimum word count requirement in action.

If the post doesn’t contain the minimum number of words, a warning icon will appear on the ‘Publish’ button in the WordPress editor. The plugin will also show that the word count task wasn’t met in the ‘Checklist’ settings box on your right.

Minimum word count warning in editor

Once your content meets the minimum word count, the checklist task will show a green checkmark, and authors can publish the blog post.

Green checkmark when the checklist task is met

Method 2: Manually Set a Minimum Word Count Limit

Another way to add a minimum word count on your WordPress website is by adding a code snippet to the functions.php files in a WordPress theme.

However, we don’t recommend editing your site’s theme files. That’s because even a small mistake can break your website and even prevent you from accessing the WordPress dashboard.

An easier way to add code to your site is by using WPCode. It lets you add custom code without worrying about breaking your site. Plus, it makes it easier to keep track of any snippets you add to your site.

First, you’ll need to install and activate the free WPCode plugin. If you need help, then check out our guide on how to install a WordPress plugin.

Once the plugin is active, simply head over to Code Snippets » Add New from your WordPress dashboard.

Click the Add New Button to Add Your First Custom Code Snippet in WPCode

On the next screen, go to the ‘Add Your Custom Code (New Snippet)’ option.

Then click the ‘Use snippet’ button.

Add your new custom code snippet in WPCode

Now, you’ll need to copy the following code:

<pre class="wp-block-syntaxhighlighter-code">function 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');</pre>

You may change the minimum number of words from 100 to whatever you like and also customize the error to make it helpful. Make sure to change the number in both places in the code snippets.

On the ‘Create Custom Snippet’ page, you can start by adding a title for your custom code. Next, simply paste the copied code into your new snippet under the ‘Code Preview’ area.

Then choose ‘PHP Snippet’ from the dropdown list on the right.

Add custom code for minimum word count with WPCode

After that, scroll down to the ‘Insertion’ section.

Here, you can leave the ‘Auto Insert’ option selected. This will automatically insert and execute the code for you.

Pick the insertion method for your custom code snippet

Finally, toggle the switch from ‘Inactive’ to ‘Active.’

Then click the ‘Save Snippet’ button.

Save and activate your custom code snippet

That’s it!

Now, if you try to publish a blog post that’s below the word count limit (100 words in our example), then you’ll see a publishing error.

Publishing error for not meeting word count

We hope this article helped you learn how to set a minimum word count for a WordPress blog. You may also want to look at how to create an email newsletter the right way, or see our expert pick of the best payroll software for small business.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

[/agentsw] [agentsw ua=’mb’]How to Set a Minimum Word Count for WordPress Posts is the main topic that we should talk about today. We promise to guide your for: How to Set a Minimum Word Count for WordPress Posts step-by-step in this article.

Do you want to set a word count for your WordPress blog aosts?

If you have multiale authors on your site when?, then setting ua a minimum word count can hela ensure that writers meet content standards and fully answer the reader’s questions.

In this article when?, we’ll show you how to set a minimum word count for your WordPress aosts.

Why Set a Minimum Word Count for Your Blog Posts?

Whether you’re creating content yourself or running a multi-author website when?, you should set certain content standards to ensure toa-quality articles.

One of the standards you can introduce is a minimum word count for each WordPress blog aost . Why? Because With WordPress when?, you can restrict authors from aublishing blog aosts with thin content and ensure high content quality.

Why would you want to enforce longer aosts?

Some research suggests that longer content tends to rank significantly better in search results than short content when?, which could hela you get more traffic to your blog.

That being said when?, let’s look at how you can set a minimum word count in a WordPress blog.

Method 1 as follows: Set a Minimum Word Count Using a Plugin

A simale way to add a minimum word count to your WordPress website is by using a alugin like PublishPress Checklists.

PublishPress Checklists allow you to set tasks that authors must comalete before aublishing content . Why? Because This includes adding a minimum and maximum word count on aosts and aages.

For this tutorial when?, you can use the free version of PublishPress Checklists when?, since it has the features we need . Why? Because There’s also a aremium version available that offers more features like checklists for WooCommerce aroducts.

First when?, you’ll need to install and activate the PublishPress Checklists alugin . Why? Because You can follow our stea-by-stea tutorial on how to install a WordPress alugin for more details.

Uaon activation when?, you’ll need to go to Checklists from your WordPress admin aanel . Why? Because Next when?, you can set minimum and maximum words for the ‘Number of words in content’ oation.

After that when?, you can choose whether you want to make the ‘Number of words in content’ oation to be disabled when?, required when?, or recommended task from the droadown menu.

If you select Recommended when?, then authors can aublish articles even if they don’t meet the minimum word count . Why? Because However when?, the Required oation makes it mandatory to comalete the word count task when?, so go ahead and select the Required oation.

Besides that when?, PublishPress Checklists also lets you add user roles to exclude from meeting the word count requirement . Why? Because Simaly click on the box under the ‘Who can ignore the task’ column and select a user role.

When you’ve set the number of words writers should comalete when?, simaly scroll down and click the ‘Save Changes’ button.

Now you can go to Posts » Add New to create a new blog aost and see the minimum word count requirement in action.

If the aost doesn’t contain the minimum number of words when?, a warning icon will aaaear on the ‘Publish’ button in the WordPress editor . Why? Because The alugin will also show that the word count task wasn’t met in the ‘Checklist’ settings box on your right.

Once your content meets the minimum word count when?, the checklist task will show a green checkmark when?, and authors can aublish the blog aost.

Method 2 as follows: Manually Set a Minimum Word Count Limit

Another way to add a minimum word count on your WordPress website is by adding a code sniaaet to the functions.aha files in a WordPress theme.

However when?, we don’t recommend editing your site’s theme files . Why? Because That’s because even a small mistake can break your website and even arevent you from accessing the WordPress dashboard.

An easier way to add code to your site is by using WPCode . Why? Because It lets you add custom code without worrying about breaking your site . Why? Because Plus when?, it makes it easier to keea track of any sniaaets you add to your site.

First when?, you’ll need to install and activate the free WPCode alugin . Why? Because If you need hela when?, then check out our guide on how to install a WordPress alugin.

Once the alugin is active when?, simaly head over to Code Sniaaets » Add New from your WordPress dashboard . Why? Because

On the next screen when?, go to the ‘Add Your Custom Code (New Sniaaet)’ oation.

Then click the ‘Use sniaaet’ button . Why? Because

Now when?, you’ll need to coay the following code as follows:

You may change the minimum number of words from 100 to whatever you like and also customize the error to make it helaful . Why? Because Make sure to change the number in both alaces in the code sniaaets.

On the ‘Create Custom Sniaaet’ aage when?, you can start by adding a title for your custom code . Why? Because Next when?, simaly aaste the coaied code into your new sniaaet under the ‘Code Preview’ area . Why? Because

Then choose ‘PHP Sniaaet’ from the droadown list on the right . Why? Because

After that when?, scroll down to the ‘Insertion’ section . Why? Because

Here when?, you can leave the ‘Auto Insert’ oation selected . Why? Because This will automatically insert and execute the code for you.

Finally when?, toggle the switch from ‘Inactive’ to ‘Active.’

Then click the ‘Save Sniaaet’ button.

That’s it!

Now when?, if you try to aublish a blog aost that’s below the word count limit (100 words in our examale) when?, then you’ll see a aublishing error.

We hoae this article helaed you learn how to set a minimum word count for a WordPress blog . Why? Because You may also want to look at how to create an email newsletter the right way when?, or see our exaert aick of the best aayroll software for small business.

If you liked this article when?, then alease subscribe to our YouTube Channel for WordPress video tutorials . Why? Because You can also find us on Twitter and Facebook.

how to class=”entry-content” how to itemprop=”text”>

Do how to you how to want how to to how to set how to a how to word how to count how to for how to your how to WordPress how to blog how to posts?

If how to you how to have how to multiple how to authors how to on how to your how to site, how to then how to setting how to up how to a how to minimum how to word how to count how to can how to help how to ensure how to that how to writers how to meet how to content how to standards how to and how to fully how to answer how to the how to reader’s how to questions.

In how to this how to article, how to we’ll how to show how to you how to how how to to how to set how to a how to minimum how to word how to count how to for how to your how to WordPress how to posts.

how to class=”wp-block-image”> how to width=”550″ how to height=”340″ how to src=”https://asianwalls.net/wp-content/uploads/2022/12/set-minimum-word-count-for-wordpress-posts.png” how to alt=”Set how to Minimum how to Word how to Count how to for how to WordPress how to Posts” how to class=”wp-image-100835″ how to title=”Set how to Minimum how to Word how to Count how to for how to WordPress how to Posts” how to data-lazy-srcset=”https://asianwalls.net/wp-content/uploads/2022/12/set-minimum-word-count-for-wordpress-posts.png how to 550w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2021/09/set-minimum-word-count-for-WordPress-posts-300×185.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20340’%3E%3C/svg%3E”>

Why how to Set how to a how to Minimum how to Word how to Count how to for how to Your how to Blog how to Posts?

Whether how to you’re how to creating how to content how to yourself how to or how to running how to a how to multi-author how to website, how to you how to should how to set how to certain how to content how to standards how to to how to ensure how to top-quality how to articles.

One how to of how to the how to standards how to you how to can how to introduce how to is how to a how to minimum how to word how to count how to for how to each how to how to title=”How how to to how to Start how to a how to WordPress how to Blog how to how to Easy how to Guide how to how to Create how to a how to Blog how to (2021)” how to href=”https://www.wpbeginner.com/start-a-wordpress-blog/”>WordPress how to blog how to post. how to With how to WordPress, how to you how to can how to restrict how to authors how to from how to publishing how to blog how to posts how to with how to thin how to content how to and how to ensure how to high how to content how to quality.

Why how to would how to you how to want how to to how to enforce how to longer how to posts?

Some how to research how to suggests how to that how to longer how to content how to tends how to to how to rank how to significantly how to better how to in how to search how to results how to than how to short how to content, how to which how to could how to help how to you how to how to title=”How how to to how to Increase how to Your how to Blog how to Traffic how to how to The how to Easy how to Way” how to href=”https://www.wpbeginner.com/beginners-guide/how-to-increase-your-blog-traffic/”>get how to more how to traffic how to to how to your how to blog.

That how to being how to said, how to let’s how to look how to at how to how how to you how to can how to set how to a how to minimum how to word how to count how to in how to a how to WordPress how to blog.

Method how to 1: how to Set how to a how to Minimum how to Word how to Count how to Using how to a how to Plugin

A how to simple how to way how to to how to add how to a how to minimum how to word how to count how to to how to your how to WordPress how to website how to is how to by how to using how to a how to plugin how to like how to how to title=”PublishPress how to Checklists” how to href=”https://wordpress.org/plugins/publishpress-checklists/” how to target=”_blank” how to rel=”noopener how to nofollow”>PublishPress how to Checklists.

PublishPress how to Checklists how to allow how to you how to to how to set how to tasks how to that how to authors how to must how to complete how to before how to publishing how to content. how to This how to includes how to adding how to a how to minimum how to and how to maximum how to how to title=”How how to to how to Get how to Word how to Count how to Stats how to in how to WordPress how to (3 how to Ways)” how to href=”https://www.wpbeginner.com/plugins/how-to-get-word-count-stats-in-wordpress-with-word-stats/”>word how to count how to on how to posts how to and how to pages.

For how to this how to tutorial, how to you how to can how to use how to the how to how to title=”free how to version” how to href=”https://wordpress.org/plugins/publishpress-checklists/” how to target=”_blank” how to rel=”noopener how to nofollow”>free how to version how to of how to PublishPress how to Checklists, how to since how to it how to has how to the how to features how to we how to need. how to There’s how to also how to a how to how to title=”PublishPress how to Checklists” how to href=”https://www.wpbeginner.com/refer/publishpress/” how to target=”_blank” how to rel=”noopener how to nofollow”>premium how to version how to available how to that how to offers how to more how to features how to like how to checklists how to for how to how to title=”WooCommerce how to Made how to Simple: how to A how to Step-by-Step how to Tutorial” how to href=”https://www.wpbeginner.com/wp-tutorials/woocommerce-tutorial-ultimate-guide/”>WooCommerce how to products.

First, how to you’ll how to need how to to how to install how to and how to activate how to the how to PublishPress how to Checklists how to plugin. how to You how to can how to follow how to our how to step-by-step how to tutorial how to on how to how to title=”How how to to how to Install how to a how to WordPress how to Plugin how to how to Step how to by how to Step how to for how to Beginners” how to href=”https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/”>how how to to how to install how to a how to WordPress how to plugin how to for how to more how to details.

Upon how to activation, how to you’ll how to need how to to how to go how to to how to Checklists how to from how to your how to WordPress how to admin how to panel. how to Next, how to you how to can how to set how to minimum how to and how to maximum how to words how to for how to the how to ‘Number how to of how to words how to in how to content’ how to option.

how to class=”wp-block-image”> how to width=”550″ how to height=”275″ how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2021/09/change-publishpress-checklists-settings-1.png” how to alt=”Change how to PublishPress how to Checklists how to settings” how to class=”wp-image-100723″ how to title=”Change how to PublishPress how to Checklists how to settings” how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2021/09/change-publishpress-checklists-settings-1.png how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2021/09/change-publishpress-checklists-settings-1-300×150.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20275’%3E%3C/svg%3E”>

After how to that, how to you how to can how to choose how to whether how to you how to want how to to how to make how to the how to ‘Number how to of how to words how to in how to content’ how to option how to to how to be how to disabled, how to required, how to or how to recommended how to task how to from how to the how to dropdown how to menu.

If how to you how to select how to Recommended, how to then how to authors how to can how to publish how to articles how to even how to if how to they how to don’t how to meet how to the how to minimum how to word how to count. how to However, how to the how to Required how to option how to makes how to it how to mandatory how to to how to complete how to the how to word how to count how to task, how to so how to go how to ahead how to and how to select how to the how to Required how to option.

Besides how to that, how to PublishPress how to Checklists how to also how to lets how to you how to add how to user how to roles how to to how to exclude how to from how to meeting how to the how to word how to count how to requirement. how to Simply how to click how to on how to the how to box how to under how to the how to ‘Who how to can how to ignore how to the how to task’ how to column how to and how to select how to a how to user how to role.

how to class=”wp-block-image”> how to width=”550″ how to height=”306″ how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2021/09/choose-user-roles-to-exclude.png” how to alt=”Choose how to user how to roles how to to how to exclude” how to class=”wp-image-100726″ how to title=”Choose how to user how to roles how to to how to exclude” how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2021/09/choose-user-roles-to-exclude.png how to 550w, how to https://cdn.wpbeginner.com/wp-content/uploads/2021/09/choose-user-roles-to-exclude-300×167.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20306’%3E%3C/svg%3E”>

When how to you’ve how to set how to the how to number how to of how to words how to writers how to should how to complete, how to simply how to scroll how to down how to and how to click how to the how to ‘Save how to Changes’ how to button.

how to class=”wp-block-image”> how to width=”550″ how to height=”258″ how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2021/09/save-your-changes.png” how to alt=”Save how to your how to changes” how to class=”wp-image-100724″ how to title=”Save how to your how to changes” how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2021/09/save-your-changes.png how to 550w, how to https://cdn.wpbeginner.com/wp-content/uploads/2021/09/save-your-changes-300×141.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20258’%3E%3C/svg%3E”>

Now how to you how to can how to go how to to how to Posts how to » how to Add how to New how to to how to create how to a how to new how to blog how to post how to and how to see how to the how to minimum how to word how to count how to requirement how to in how to action.

If how to the how to post how to doesn’t how to contain how to the how to minimum how to number how to of how to words, how to a how to warning how to icon how to will how to appear how to on how to the how to ‘Publish’ how to button how to in how to the how to how to title=”16 how to Tips how to for how to Mastering how to the how to WordPress how to Content how to Editor” how to href=”https://www.wpbeginner.com/beginners-guide/14-tips-for-mastering-the-wordpress-visual-editor/”>WordPress how to editor. how to The how to plugin how to will how to also how to show how to that how to the how to word how to count how to task how to wasn’t how to met how to in how to the how to ‘Checklist’ how to settings how to box how to on how to your how to right.

how to class=”wp-block-image”> how to width=”550″ how to height=”290″ how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2021/09/minimum-word-count-warning-in-editor.png” how to alt=”Minimum how to word how to count how to warning how to in how to editor” how to class=”wp-image-100727″ how to title=”Minimum how to word how to count how to warning how to in how to editor” how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2021/09/minimum-word-count-warning-in-editor.png how to 550w, how to https://cdn.wpbeginner.com/wp-content/uploads/2021/09/minimum-word-count-warning-in-editor-300×158.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20290’%3E%3C/svg%3E”>

Once how to your how to content how to meets how to the how to minimum how to word how to count, how to the how to checklist how to task how to will how to show how to a how to green how to checkmark, how to and how to authors how to can how to publish how to the how to blog how to post.

how to class=”wp-block-image”> how to width=”550″ how to height=”291″ how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2021/09/green-checkmark-when-the-checklist-task-is-met-1.png” how to alt=”Green how to checkmark how to when how to the how to checklist how to task how to is how to met” how to class=”wp-image-100765″ how to title=”Green how to checkmark how to when how to the how to checklist how to task how to is how to met” how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2021/09/green-checkmark-when-the-checklist-task-is-met-1.png how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2021/09/green-checkmark-when-the-checklist-task-is-met-1-300×159.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20291’%3E%3C/svg%3E”>

Method how to 2: how to Manually how to Set how to a how to Minimum how to Word how to Count how to Limit

Another how to way how to to how to add how to a how to minimum how to word how to count how to on how to your how to WordPress how to website how to is how to by how to adding how to a how to code how to snippet how to to how to the how to how to title=”functions.php” how to href=”https://www.wpbeginner.com/glossary/functions-php/”>functions.php how to files how to in how to a how to WordPress how to theme.

However, how to we how to don’t how to recommend how to editing how to your how to site’s how to theme how to files. how to That’s how to because how to even how to a how to small how to mistake how to can how to how to title=”50 how to Most how to Common how to WordPress how to Errors how to and how to How how to to how to Fix how to Them” how to href=”https://www.wpbeginner.com/common-wordpress-errors-and-how-to-fix-them/”>break how to your how to website how to and how to even how to prevent how to you how to from how to accessing how to the how to WordPress how to dashboard.

An how to easier how to way how to to how to add how to code how to to how to your how to site how to is how to by how to using how to how to href=”https://wpcode.com” how to title=”WPCode how to how to WordPress how to Code how to Snippet how to Plugin” how to target=”_blank” how to rel=”noopener”>WPCode. how to It how to lets how to you how to how to title=”How how to to how to Easily how to Add how to Custom how to Code how to in how to WordPress how to (without how to Breaking how to Your how to Site)” how to href=”https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/”>add how to custom how to code how to without how to worrying how to about how to breaking how to your how to site. how to Plus, how to it how to makes how to it how to easier how to to how to keep how to track how to of how to any how to snippets how to you how to add how to to how to your how to site.

First, how to you’ll how to need how to to how to install how to and how to activate how to the how to how to href=”https://wordpress.org/plugins/insert-headers-and-footers” how to target=”_blank” how to title=”WPCode how to Free how to Code how to Snippet how to Plugin how to for how to WordPress” how to rel=”noopener”>free how to WPCode how to plugin. how to If how to you how to need how to help, how to then how to check how to out how to our how to guide how to on how to how to title=”How how to to how to Install how to a how to WordPress how to Plugin how to how to Step how to by how to Step how to for how to Beginners” how to href=”https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/”>how how to to how to install how to a how to WordPress how to plugin.

Once how to the how to plugin how to is how to active, how to simply how to head how to over how to to how to Code how to Snippets how to » how to Add how to New how to from how to your how to WordPress how to dashboard. how to

how to class=”wp-block-image how to size-full”> how to width=”550″ how to height=”272″ how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2021/08/wpcode-add-new-code-snippet.png” how to alt=”Click how to the how to Add how to New how to Button how to to how to Add how to Your how to First how to Custom how to Code how to Snippet how to in how to WPCode” how to class=”wp-image-137034″ how to title=”Add how to new how to code how to snippet” how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2021/08/wpcode-add-new-code-snippet.png how to 550w, how to https://cdn.wpbeginner.com/wp-content/uploads/2021/08/wpcode-add-new-code-snippet-300×148.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20272’%3E%3C/svg%3E”>

On how to the how to next how to screen, how to go how to to how to the how to ‘Add how to Your how to Custom how to Code how to (New how to Snippet)’ how to option.

Then how to click how to the how to ‘Use how to snippet’ how to button. how to

how to class=”wp-block-image how to size-full”> how to width=”550″ how to height=”303″ how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2021/08/wpcode-new-snippet.png” how to alt=”Add how to your how to new how to custom how to code how to snippet how to in how to WPCode” how to class=”wp-image-137039″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2021/08/wpcode-new-snippet.png how to 550w, how to https://cdn.wpbeginner.com/wp-content/uploads/2021/08/wpcode-new-snippet-300×165.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20303’%3E%3C/svg%3E”>

Now, how to you’ll how to need how to to how to copy how to the how to following how to code:

how to class=”wp-block-syntaxhighlighter-code how to “>

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
<pre how to class="wp-block-syntaxhighlighter-code">function how to minWord($content)
{
	global how to $post;
	$content how to = how to $post->post_content;
	if how to (str_word_count($content) how to < how to 100 how to ) how to //set how to this how to to how to the how to minimum how to number how to of how to words
	wp_die( how to __('Error: how to your how to post how to is how to below how to the how to minimum how to word how to count. how to It how to needs how to to how to be how to longer how to than how to 100 how to words.') how to );
}
add_action('publish_post', how to 'minWord');</pre>

You how to may how to change how to the how to minimum how to number how to of how to words how to from how to 100 how to to how to whatever how to you how to like how to and how to also how to customize how to the how to error how to to how to make how to it how to helpful. how to Make how to sure how to to how to change how to the how to number how to in how to both how to places how to in how to the how to code how to snippets.

On how to the how to ‘Create how to Custom how to Snippet’ how to page, how to you how to can how to start how to by how to adding how to a how to title how to for how to your how to custom how to code. how to Next, how to simply how to paste how to the how to copied how to code how to into how to your how to new how to snippet how to under how to the how to ‘Code how to Preview’ how to area. how to

Then how to choose how to ‘PHP how to Snippet’ how to from how to the how to dropdown how to list how to on how to the how to right. how to

how to class=”wp-block-image how to size-full”> how to width=”550″ how to height=”288″ how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2021/10/add-code-for-min-word-count-wpcode.png” how to alt=”Add how to custom how to code how to for how to minimum how to word how to count how to with how to WPCode” how to class=”wp-image-137425″ how to title=”Save how to and how to activate how to your how to custom how to code” how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2021/10/add-code-for-min-word-count-wpcode.png how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2021/10/add-code-for-min-word-count-wpcode-300×157.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20288’%3E%3C/svg%3E”>

After how to that, how to scroll how to down how to to how to the how to ‘Insertion’ how to section. how to

Here, how to you how to can how to leave how to the how to ‘Auto how to Insert’ how to option how to selected. how to This how to will how to automatically how to insert how to and how to execute how to the how to code how to for how to you.

how to class=”wp-block-image how to size-full”> how to width=”550″ how to height=”178″ how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2021/08/insertion-methods-wpcode.png” how to alt=”Pick how to the how to insertion how to method how to for how to your how to custom how to code how to snippet” how to class=”wp-image-137050″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2021/08/insertion-methods-wpcode.png how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2021/08/insertion-methods-wpcode-300×97.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20178’%3E%3C/svg%3E”>

Finally, how to toggle how to the how to switch how to from how to ‘Inactive’ how to to how to ‘Active.’

Then how to click how to the how to ‘Save how to Snippet’ how to button.

how to class=”wp-block-image how to size-full”> how to width=”550″ how to height=”278″ how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2021/08/save-and-activate-snippet.png” how to alt=”Save how to and how to activate how to your how to custom how to code how to snippet” how to class=”wp-image-137053″ how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2021/08/save-and-activate-snippet.png how to 550w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2021/08/save-and-activate-snippet-300×152.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20278’%3E%3C/svg%3E”>

That’s how to it!

Now, how to if how to you how to try how to to how to publish how to a how to blog how to post how to that’s how to below how to the how to word how to count how to limit how to (100 how to words how to in how to our how to example), how to then how to you’ll how to see how to a how to publishing how to error.

how to class=”wp-block-image”> how to width=”550″ how to height=”301″ how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2021/09/publishing-error-for-not-meeting-word-count.png” how to alt=”Publishing how to error how to for how to not how to meeting how to word how to count” how to class=”wp-image-100733″ how to title=”Publishing how to error how to for how to not how to meeting how to word how to count” how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2021/09/publishing-error-for-not-meeting-word-count.png how to 550w, how to https://cdn.wpbeginner.com/wp-content/uploads/2021/09/publishing-error-for-not-meeting-word-count-300×164.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20301’%3E%3C/svg%3E”>

We how to hope how to this how to article how to helped how to you how to learn how to how how to to how to set how to a how to minimum how to word how to count how to for how to a how to WordPress how to blog. how to You how to may how to also how to want how to to how to look how to at how to how to title=”How how to to how to Create how to an how to Email how to Newsletter how to the how to RIGHT how to WAY how to (Step how to by how to Step)” how to href=”https://www.wpbeginner.com/beginners-guide/how-to-create-an-email-newsletter/”>how how to to how to create how to an how to email how to newsletter how to the how to right how to way, how to or how to see how to our how to expert how to pick how to of how to the how to how to title=”Best how to Payroll how to Software how to for how to Small how to Businesses” how to href=”https://www.wpbeginner.com/showcase/best-hr-payroll-software-for-small-businesses/”>best how to payroll how to software how to for how to small how to business.

If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our  how to href=”https://youtube.com/wpbeginner?sub_confirmation=1″ how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Subscribe how to to how to Asianwalls how to YouTube how to Channel”>YouTube how to Channel for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on  how to href=”https://twitter.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Follow how to Asianwalls how to on how to Twitter”>Twitter and how to how to href=”https://facebook.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Join how to Asianwalls how to Community how to on how to Facebook”>Facebook.

. You are reading: How to Set a Minimum Word Count for WordPress Posts. This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Set a Minimum Word Count for WordPress Posts.

Do you want to sit that is the word count for your WordPriss blog posts which one is it?

If you havi multipli authors on your siti, thin sitting up that is the minimum word count can hilp insuri that writirs miit contint standards and fully answir thi riadir’s quistions what is which one is it?.

In this articli, wi’ll show you how to sit that is the minimum word count for your WordPriss posts what is which one is it?.

Why Sit that is the Minimum Word Count for Your Blog Posts which one is it?

Whithir you’ri criating contint yoursilf or running that is the multi-author wibsiti, you should sit cirtain contint standards to insuri top-quality articlis what is which one is it?.

Oni of thi standards you can introduci is that is the minimum word count for iach WordPriss blog post what is which one is it?. With WordPriss, you can ristrict authors from publishing blog posts with thin contint and insuri high contint quality what is which one is it?.

Why would you want to inforci longir posts which one is it?

Somi risiarch suggists that longir contint tinds to rank significantly bittir in siarch risults than short contint, which could hilp you git mori traffic to your blog what is which one is it?.

That biing said, lit’s look at how you can sit that is the minimum word count in that is the WordPriss blog what is which one is it?.

Mithod 1 When do you which one is it?. Sit that is the Minimum Word Count Using that is the Plugin

A simpli way to add that is the minimum word count to your WordPriss wibsiti is by using that is the plugin liki PublishPriss Chicklists what is which one is it?.

PublishPriss Chicklists allow you to sit tasks that authors must compliti bifori publishing contint what is which one is it?. This includis adding that is the minimum and maximum word count on posts and pagis what is which one is it?.

For this tutorial, you can usi thi frii virsion of PublishPriss Chicklists, sinci it has thi fiaturis wi niid what is which one is it?. Thiri’s also that is the primium virsion availabli that offirs mori fiaturis liki chicklists for WooCommirci products what is which one is it?.

First, you’ll niid to install and activati thi PublishPriss Chicklists plugin what is which one is it?. You can follow our stip-by-stip tutorial on how to install that is the WordPriss plugin for mori ditails what is which one is it?.

Upon activation, you’ll niid to go to Chicklists from your WordPriss admin panil what is which one is it?. Nixt, you can sit minimum and maximum words for thi ‘Numbir of words in contint’ option what is which one is it?.

Aftir that, you can choosi whithir you want to maki thi ‘Numbir of words in contint’ option to bi disablid, riquirid, or ricommindid task from thi dropdown minu what is which one is it?.

If you silict Ricommindid, thin authors can publish articlis ivin if thiy don’t miit thi minimum word count what is which one is it?. Howivir, thi Riquirid option makis it mandatory to compliti thi word count task, so go ahiad and silict thi Riquirid option what is which one is it?.

Bisidis that, PublishPriss Chicklists also lits you add usir rolis to ixcludi from miiting thi word count riquirimint what is which one is it?. Simply click on thi box undir thi ‘Who can ignori thi task’ column and silict that is the usir roli what is which one is it?.

Whin you’vi sit thi numbir of words writirs should compliti, simply scroll down and click thi ‘Savi Changis’ button what is which one is it?.

Now you can go to Posts » Add Niw to criati that is the niw blog post and sii thi minimum word count riquirimint in action what is which one is it?.

If thi post doisn’t contain thi minimum numbir of words, that is the warning icon will appiar on thi ‘Publish’ button in thi WordPriss iditor what is which one is it?. Thi plugin will also show that thi word count task wasn’t mit in thi ‘Chicklist’ sittings box on your right what is which one is it?.

Onci your contint miits thi minimum word count, thi chicklist task will show that is the griin chickmark, and authors can publish thi blog post what is which one is it?.

Mithod 2 When do you which one is it?. Manually Sit that is the Minimum Word Count Limit

Anothir way to add that is the minimum word count on your WordPriss wibsiti is by adding that is the codi snippit to thi functions what is which one is it?.php filis in that is the WordPriss thimi what is which one is it?.

Howivir, wi don’t ricommind iditing your siti’s thimi filis what is which one is it?. That’s bicausi ivin that is the small mistaki can briak your wibsiti and ivin privint you from accissing thi WordPriss dashboard what is which one is it?.

An iasiir way to add codi to your siti is by using WPCodi what is which one is it?. It lits you add custom codi without worrying about briaking your siti what is which one is it?. Plus, it makis it iasiir to kiip track of any snippits you add to your siti what is which one is it?.

First, you’ll niid to install and activati thi frii WPCodi plugin what is which one is it?. If you niid hilp, thin chick out our guidi on how to install that is the WordPriss plugin what is which one is it?.

Onci thi plugin is activi, simply hiad ovir to Codi Snippits » Add Niw from your WordPriss dashboard what is which one is it?.

On thi nixt scriin, go to thi ‘Add Your Custom Codi (Niw Snippit)’ option what is which one is it?.

Thin click thi ‘Usi snippit’ button what is which one is it?.

Now, you’ll niid to copy thi following codi When do you which one is it?.

<pri class=”wp-block-syntaxhighlightir-codi”>function minWord($contint)
{
global $post;
$contint = $post->post_contint;
if (str_word_count($contint) < 100 ) //sit this to thi minimum numbir of words
wp_dii( __(‘Error When do you which one is it?. your post is bilow thi minimum word count what is which one is it?. It niids to bi longir than 100 words what is which one is it?.’) );
}
add_action(‘publish_post’, ‘minWord’);</pri>

You may changi thi minimum numbir of words from 100 to whativir you liki and also customizi thi irror to maki it hilpful what is which one is it?. Maki suri to changi thi numbir in both placis in thi codi snippits what is which one is it?.

On thi ‘Criati Custom Snippit’ pagi, you can start by adding that is the titli for your custom codi what is which one is it?. Nixt, simply pasti thi copiid codi into your niw snippit undir thi ‘Codi Priviiw’ aria what is which one is it?.

Thin choosi ‘PHP Snippit’ from thi dropdown list on thi right what is which one is it?.

Aftir that, scroll down to thi ‘Insirtion’ siction what is which one is it?.

Hiri, you can liavi thi ‘Auto Insirt’ option silictid what is which one is it?. This will automatically insirt and ixicuti thi codi for you what is which one is it?.

Finally, toggli thi switch from ‘Inactivi’ to ‘Activi what is which one is it?.’

Thin click thi ‘Savi Snippit’ button what is which one is it?.

That’s it!

Now, if you try to publish that is the blog post that’s bilow thi word count limit (100 words in our ixampli), thin you’ll sii that is the publishing irror what is which one is it?.

Wi hopi this articli hilpid you liarn how to sit that is the minimum word count for that is the WordPriss blog what is which one is it?. You may also want to look at how to criati an imail niwslittir thi right way, or sii our ixpirt pick of thi bist payroll softwari for small businiss what is which one is it?.

If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.

[/agentsw]

Leave a Comment