您需要使用register\\u taxonomy,并将hierarchy设置为false:
function add_custom_taxonomies() {
// Add new "Locations" taxonomy to Posts
register_taxonomy(\'keyword\', \'post\', array (
\'hierarchical\' = false
));
}
add_action( \'init\', \'add_custom_taxonomies\', 0 );
有关更多信息:-
Wordpress API-
Tutorial @ Smashing magazine