我认为你最好使用自定义帖子类型而不是类别。然后,您可以创建具有自定义功能的帖子类型:
$args = array(
\'labels\' => $labels,
\'public\' => true,
\'publicly_queryable\' => true,
\'show_ui\' => true,
\'show_in_menu\' => true,
\'query_var\' => true,
\'rewrite\' => true,
\'capability_type\' => \'custom\',
\'has_archive\' => true,
\'hierarchical\' => false,
\'map_meta_cap\' => true,
\'supports\' => array( \'title\', \'editor\', \'author\', \'thumbnail\', \'excerpt\', \'comments\' )
);
register_post_type(\'book\',$args);
然后,您可以只使用JustinTadlock的插件成员来添加新的功能类型。