Limit taxonomy terms added to a custom post type

You can do it with jQuery with easyly. Count your tags and limit it!

  1. C = Re item’s number
  2. L = Your limit number
  3. 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")
    }
});

tech