What's WP
Our everything is about WordPress - best choice of WordPress users!
How to Limit WordPress Comment Length?

How to Limit WordPress Comment Length?

WordPress allows visitors to make comments around blog topics. Most bloggers welcome comments on their posts, however, not for comments with few or too many words. In this case, it’s a good idea to limit the length of comments in WordPress. So, how to do that?

There are 2 methods for that purpose. One is adding lines of coding snippet in your theme’s functions.php file, and the other is using plugins. Since coding is more complex and harder for beginners, in the following we will mainly focus on how to limit WordPress comment length using plugins.

The Necessity of Limiting Comment Length

If visitors post comments that just have a few words or more than 5000 characters on the site, these comments are likely to be spam. For the former case, the comment is usually of no help as the reviewer is just trying to make a backlink from your site. For the latter case, the comment could be a rant or complaint that is not related to the post.

Therefore, to avoid comment spam and improve the quality of your site comments, it’s necessary to limit the length of comments in WordPress.

Limit WordPress Comment Limit Using Plugins

For detailed steps, we take the plugin – Greg’s Comment Length Limiter as example. This plugin can be very helpful because it provides a configurable limit on the WordPress comment length.

Firstly, you should have this plugin installed and activated on your WordPress. If you are not clear how to install a plugin, you can refer to this installing tutorial. Once finished, it will be added in the Settings list. Next, go to Settings > Comment Length Limiter to configure the plugin.

Settings Comment Length Limiter

On the screen, you will see the configuration page. Here, you are allowed to do some settings in different areas.

Comment Length Limiter Configuration

In the “Upper Length Limit” section, you can specify the maximum length of comments accepted in the comment box. Hence, next to “Upper Limit?”, just enter the total number of characters in the blank field. Here we entered “3000”.

Besides, you can decide whether to have a countdown box that automatically shows how many characters are left. For automatic countdown box, you just need to select “Yes” next to “Automatically Show Countdown Box?”. Alternatively, you can select “No” to customize the text for the countdown box.

Scroll down and you’ll find there are 4 options, from which you can choose what action to take if the comments are oversized. Once you have done all the settings, click “Save Changes” on the bottom of the page.

Note that, with this plugin, you can set the maximum character limit, but not the minimum character limit. If you want to do the minimum setting, we recommend you the Minimum Comment Length plugin with which you can not only set the length of comment but also customize what error message to display when someone fails to meet the minimum characters.

Similarly, upon installation and activation, go to Settings > Min comment length.

Minimum Comment Length Configuration

After setting the minimum comment length and error message, click “Update Settings”. That’s it!

Author

Lucy has been a very experienced SEOer, technical writer, web developer, c# developer since 2002. Now she owns a startup in San Francisco, CA, focusing on running a couple of blogs to share knowledge and experience with global readers and deliver exceptional results to global sponsors by leveraging the power of Internet.

Close

Want to Learn More About WordPress?

Get Our Free Themes, Plugins, Support, SEO Tips, and Other Tutorials!

Email *