没问题,类别和标记也注册为分类法,您可以将其传递给taxonomies 调用时的参数register_post_type(). 类别为category 和标签是post_tag. 您也可以稍后使用register_taxonomy_for_object_type():
add_action( \'init\', \'wpse6098_init\', 100 ); // 100 so the post type has been registered
function wpse6098_init()
{
register_taxonomy_for_object_type( \'category\', \'your_custom_post_type\' );
}