themes functions.phpのカスタム投稿タイプをregusterdするか、プラグインファイルにもう1つのパラメータを追加します。その後
'taxonomies' => array('category')
ここではサンプルコード
function team_create_post_type() {
$labels = array(
'name' => __('Team', 'twentyfifteen'),
'singular_name' => __('Team', 'twentyfifteen'),
'add_new' => __('Add New', 'twentyfifteen'),
'add_new_item' => __('Add New Team', 'twentyfifteen'),
'edit_item' => __('Edit Team', 'twentyfifteen'),
'new_item' => __('New Team', 'twentyfifteen'),
'all_items' => __('All Team', 'twentyfifteen'),
'view_item' => __('View Team', 'twentyfifteen'),
'search_items' => __('Search Team', 'twentyfifteen'),
'not_found' => __('No team found', 'twentyfifteen'),
'not_found_in_trash' => __('No team found in Trash', 'twentyfifteen'),
'parent_item_colon' => '',
'menu_name' => __('Team', 'twentyfifteen'),
);
register_post_type(
'team',
array(
'labels' => $labels,
'supports' => array('title', 'editor', 'thumbnail', 'comments', 'author'),
'public' => TRUE,
'query_var'=>TRUE,
'publicly_queryable'=>TRUE,
'has_archive' => TRUE,
'rewrite' => array('slug' => __('team', 'twentyfifteen')),
'menu_position' => 32,
'taxonomies' => array('category')
)
);
}
add_action('init', 'team_create_post_type');
あなたは
プラグインポストタイプチェンジャーを使用することができます