Support » Plugins and Hacks » Limit the Post Size (Not just the Excerpt size)

Limit the Post Size (Not just the Excerpt size)

  • My goal is to simply limit the post size on the admin side of the post. I want to limit the entire system to only allow posts that are 300 characters throughout the site. Any ideas on how to do this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • I am not looking to limit the excerpt size but the post size itself. Trying to figure this out! Thanks for any help / direction!

    So, here is my starting point that I’ve found thus far, now trying to add the same functionality to the “post” area:


    <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo esc_attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off"
                   onKeyDown= "limitText(this.form.post_title,this.form.countdown,20);"


    function limitText(limitField, limitCount, limitNum) {
    	if (limitField.value.length > limitNum) {
    		limitField.value = limitField.value.substring(0, limitNum);
    	} else {
    		limitCount.value = limitNum - limitField.value.length;

    Originally from This Great Article!

    I saw that you could do this, would this help?

    ALTER TABLE wp_posts CHANGE post_title post_title VARCHAR( 80 ) NOT NULL

    Moved To: HERE

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Limit the Post Size (Not just the Excerpt size)’ is closed to new replies.