皆様有難うございます。
一つ一つ切り分けましたら、
Jim912様のご指摘の投稿タイプの大文字が原因でした。
本当にありがとうございます。
mimosafa様のご指摘の-も消しました。
mura0403様
記述を参考にさせていただきます。
今後共よろしくお願いいたします。
コメントありがとうございます。
記述については以下のようにしております。
// カスタム投稿タイプの追加
add_action( 'init', 'create_post_type' );
function create_post_type() {
register_post_type( 'Newss', /* post-type */
array(
'labels' => array(
'name' => __( 'News' ),
'singular_name' => __( 'News' )
),
'public' => true,
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'custom-fields' ,'comments' ),
'menu_position' =>5,
'has_archive' => true
)
);
// カスタムタクソノミー、カテゴリタイプ
register_taxonomy(
'Newss-cat',
'Newss',
array(
'hierarchical' => true,
'update_count_callback' => '_update_post_term_count',
'label' => 'test',
'singular_label' => 'test',
'public' => true,
'show_ui' => true
)
);
}