如果要列出必须使用的自定义分类法get_terms 作用
根据您的需求,您可以自行修改默认类别,而不是创建新的分类法
function custom_change_cat_object() {
global $wp_taxonomies;
$labels = &$wp_taxonomies[\'category\']->labels;
$labels->name = \'Author\';
$labels->singular_name = \'Author\';
$labels->add_new = \'Add Author\';
$labels->add_new_item = \'Add Author\';
$labels->edit_item = \'Edit Author\';
$labels->new_item = \'Author\';
$labels->view_item = \'View Author\';
$labels->search_items = \'Search Authors\';
$labels->not_found = \'No Authors found\';
$labels->not_found_in_trash = \'No Authors found in Trash\';
$labels->all_items = \'All Authors\';
$labels->menu_name = \'Author\';
$labels->name_admin_bar = \'Author\';
}
add_action( \'init\', \'custom_change_cat_object\' );