Limit taxonomy terms added to a custom post type
You can do it with jQuery with easyly. Count your tags and limit it! C = Re item’s number L = Your limit number if ( C==L ) add class “disable” to div $(document).ready(function(){ var L = 10; var $items = $(‘#post_tag .tagchecklist span’); if($items.length == L){ $(“#post_tag”).addClass(“disable”); // or alert(“ok”) } });