タクソノミー メタ ボックスに空のタクソノミー リストが表示されます。分類法の下にいくつかの用語を作成しましたが、1 つも見つかりません。
カスタム投稿タイプの私のコード
$args = array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'show_ui' => true,
'query_var' => true,
'rewrite' => true,
'show_in_menu' => false,
'hierarchical' => false,
'menu_position' => NULL,
'supports' => array('title', 'editor', 'thumbnail', 'author', 'comments', $this->taxonomy /* 'teams' */),
'taxonomies' => array($this->taxonomy /* 'teams' */)
);
register_post_type( $this->postType /* 'videos' */, $args);
そして私の分類法
register_taxonomy($this->taxonomy /* 'teams' */, $this->postType /* 'videos' */,array(
'hierarchical' => false,
'labels' => $labels,
'show_ui' => true,
'show_in_menu' => false,
'show_admin_column' => true,
'update_count_callback' => '_update_post_term_count',
'query_var' => true,
);