How to customize the minimum word count for an article in WordPress
By Admin
Many WordPress website owners employ multiple writers to add content, but sometimes there are some who want their site content to be of a certain length and fit with the goals set by them. Of course, WordPress does not provide the feature of limiting the number of words for the content. Through this article, we will learn how to customize the minimum number of words in WordPress through plugins and manually.
How to allocate the minimum number of words: The length of the content plays a major role in improving the site’s appearance in search engines. In addition, long content is rich in information that benefits the visitor and addresses all aspects of the topic. It is worth noting that there are some SEO plugins that specify the minimum number of articles, such as the Yoast SEO plugin. But this will certainly not be compatible with what you actually want, and in the following lines we will learn how to determine the appropriate word count for your articles: Setting the minimum number of words on WordPress using plugins. There are a group of plugins that enable you to do this, and the PublishPress Checklists plugin is one of them.
It comes with multiple features regarding managing content on the site. In addition to determining the appropriate number of words, we find that it sets some standards, such as adding a picture to the article, approving the article by one of the users before publishing it, or the number of internal and external links, and other tasks. In order to be able to use the PublishPress Checklists plugin to determine the number of words contained in WordPress, you must first install it, by going to the WordPress control panel. < الإضافات < أضف جديد. ثم ابحث عن الإضافة بادخال اسمها في حقل البحث العلوي.
Select it and click Install then Activate. After activating the plugin, you can now start customizing the minimum number of words in WordPress, and you will find that a special icon has been added to the right menu of the control panel called Checklists. Just tap on it to enter Settings, and then scroll down.
And under the Number of words in content option. Select the order status from three options: required, meaning that the order is mandatory, or recommended, in the case that the order is only recommended, which means that writers have the ability to publish articles even if the article does not meet the specified word count, and disabled to stop the order. It is also possible to exclude some users from these commands in the Who can ignore the task section.
In the options section, set the minimum and maximum number of words you want. Then scroll down and click Save Changes. Now, when writing any article on the site, you will find that there is a red exclamation mark on the publish button at the top, in addition to indicating the minimum words on the left side of the screen. It is worth noting that the article cannot be published unless these requirements are met.
The PublishPress Checklists add-on offers a paid version, through which it provides additional features of updates and customization of the minimum content of online stores. And adjusting the borders of images, in addition to technical support, and removing the add-on branding and advertisements. But without major differences between the paid and free version, and you can view them here.
Manually customize the minimum number of words in WordPress If you do not want to use plugins, there is also an option that enables you to manually customize the number of words by adding some code to the site files, but keep in mind that if you do not have sufficient experience, you should not start doing this; Because the slightest error will stop your site from working, and here is how to do that: First, you will need to go to the WordPress control panel and then click on Appearance.< محرر القوالب ومن قائمة الملفات الجانبية انقر على ملف functions.php أو خصائص القالب. أضف الكود التالي إلى نهاية الملف، وانقر على تحديث الملف. 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'); Thus, you have set the minimum number of words in WordPress, and an alert will appear at the top indicating that the publishing process will fail if it is less than the specified limit. If you want to change the number of words, you can do so by modifying the number in the code. These are the two methods that can be used to customize the number of words in WordPress. It is worth noting that the number of words is not one of the influential aspects when it comes to writing content that is compatible with search engines, but what is more important is providing value to the reader and giving the topic its due right in writing.
If the article is long and without any rich information (filling), you will certainly find that the traffic rate decreases, and vice versa if the content is limited and provides benefit to the visitor.
DROPIDEA
We hope this article has added real value to you. At DROPIDEA, we always strive to deliver high-quality content that helps you grow and evolve in the digital space. Follow us for more useful articles and guides.
Admin
DROPIDEA
Latest Articles
“Nofollow” tag: What it is, how and where it is used, “Infographics”
ASUS ROG Flow Z13 (2025) available: Everything you could dream of in a gaming tablet.
The best 5 sites to download safe computer programs without malware!
Create a forum on WordPress using the bbPress plugin step by step