jQuery(document).ready(function(){ jQuery("#postexcerpt .handlediv").after("
Numero caratteri: / 500caratteri.
"); jQuery("span#excerpt_counter").text(jQuery("#excerpt").val().length); jQuery("#excerpt").keyup( function() { if(jQuery(this).val().length > 500){ jQuery(this).val(jQuery(this).val().substr(0, 500)); } jQuery("span#excerpt_counter").text(jQuery("#excerpt").val().length); }); });'; } } add_action( 'admin_head-post.php', 'excerpt_count_js'); add_action( 'admin_head-post-new.php', 'excerpt_count_js'); # Content/Contenuto function content_char_count() { ?>