Define a Minimum Word Per Post


Sponsored Links






WordPress built with many hooks and action that we can put it and make it easy to hack original WordPress code without broken overall functions. On this sample we will show you how to define a minimum word count per post on your WordPress.

Define a Minimum Word -The Vampire Diaries

Define a Minimum Word -The Vampire Diaries


This function is useful, if you want to be able to keep a minimum word count for your posts. To use this code put this code on functions.php

function minWord($content){
    global $post;
        $num = 100; //set this to the minimum number of words
    $content = $post->post_content;
    if (str_word_count($content) <  $num)
        wp_die( __('Error: your post is below the minimum word count.') );
}
add_action('publish_post', 'minWord');

Thanks for WP Recipes for share this tips, this code original written by Pippin WIlliamson

Subscribe to Full RSS Feed

RSS FeedIf you thing this article useful, please consider subscribing to our RSS Feed or e-mail updates and stay updated with us. You can also follow @WPTricksNet on twitter for latest updates.

About WP Tricks

We are WordPress Family, we collected and writed useful tips and tricks for you WordPress. We share it for you...

Related Tips and Trick from Local Data and on The Net

How To Limit Post Title Words on WordPress

WordPress and SEO is the perfect match so far, easy to develop, easy to use and give high impact on SEO. Like we all know, many search engine only limited 160 character to be included the indexing. Now we will … Read More

Create you own Excerpt in WordPress

Sometimes we need to limit how many words will be displayed in our excerpt, If you have use WordPress 2.9.x you can use Easy Excerpt method, but if you want something different, you can create own excerpt and replace your … Read More

The Best way to replace words in your posts

Like we all know, WordPress is the most promising publishing platform, it's free and easy to tweak or installed new themes or plugin. Or if we have little bit knowledge in PHP Programming we can enhanced our WordPress more easily. … Read More

How to Tweak You WordPress Post Category Page

Deluxe Blog Tips give nicely example how to show different number of post each category in WordPress. This code must be put in functions.php. On Deluxe Blog Tips sample how to show number post on News and WordPress Category. On … Read More

How To Disable WordPress Post Revision

To save MySQL storage, some WordPress user will be happy using this method, this method is Disable WordPress Post Revision. Why we need disabled this featured? It' because WordPress created such as dummy data revision and this one make our … Read More

Post Thumbnail on RSS Feed

Jeff Starr give nice tricks how To Added Post Tumbnail in our RSS Feed, and I will show you on today wordpress tips. This code only need tiny hack, we put some code in our functions.php and the code will … Read More

How to define a minimum word count per post

Daily recipes to cook with WordPress If you want to be able to keep a minimum word count for your posts, then just read this recipe. read more

Source: http://www.wprecipes.com/how-to-define-a-minimum-word-count-per-post

Defining Minimum Word Count Per Post in WP

See how to specify the minimum word count per post in WordPress. By specifying minimum In WordPress it is possible to define a minimum word count for posts and this read more

Source: http://www.webfroze.com/wordpress/defining-minimum-word-count-per-post-in-wp/

Perusal | Define Perusal at Dictionary.com

noun 1. a reading: a perusal of the current books. 2. the act of perusing ; survey; scrutiny: A more careful perusal yields this conclusion. Origin: 1590–1600 read more

Source: http://dictionary.reference.com/browse/perusal

Jiskha Homework Help - Search: Define word

what is the verb of define The word "define How does your text define Oceania? How do you define a city? What is the minimum task which takes 14 seconds per word read more

Source: http://www.jiskha.com/search/index.cgi?query=Define+word

Words per minute - Wikipedia, the free encyclopedia

Words per minute, commonly abbreviated wpm, is a For instance, "I run" counts as one word, but some positions can require 80 to 95 (usually the minimum read more

Source: http://en.wikipedia.org/wiki/Words_per_minute


Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>