ControlledChaos of Controlled Chaos Design
8/9/2016 - 6:48 PM

Limit the number of characters allowed in the post/page title field.

Limit the number of characters allowed in the post/page title field.

<?php

function ccd_limit_title_chars() { ?>
    
    <!-- Change maxLength number to desired limit -->
    <script>jQuery( 'input#title' ).attr( 'maxlength', 36 );</script>
    
<?php }
add_action( 'admin_footer', 'ccd_limit_title_chars' );

?>

Limit Title Characters

WordPress Snippet