>kz様
検証ありがとうございます。
私の表記が悪かったのですが、“XXXXX-cat”でカスタムタクソノミーの名前だったので、
恐らくkzさん指定のURLと同じで、自分の環境の場合だけ出ていない事になりますね・・・。
カスタム投稿タイプ・カスタムタクソノミーの作り方(function.phpの書き方)の方に問題があるのか、マルチサイト化してるから正しく表示されないのか・・・。
違うサーバーに入れてあるWPなどでもテストしてみます。
ちなみに現状のfunction.phpに書いてあるカスタム投稿関連のソースが下記になります。
もし原因になりそうな箇所がありましたらご指摘いただけると助かります。
// ▼▼カスタム投稿タイプ/カスタム分類の追加
add_action( 'init', 'create_post_type' );
function create_post_type() {
// ▼お知らせ
register_post_type( 'info', /* post-type */
array(
'labels' => array(
'name' => __( 'お知らせ' ),
'singular_name' => __( 'お知らせ' )
),
'public' => true,
'menu_position' =>5,
'has_archive' => 'info/archive/'
)
);
// ▲お知らせ
// ▼大会情報
register_post_type( 'gameinfo', /* post-type */
array(
'labels' => array(
'name' => __( '大会情報' ),
'singular_name' => __( '大会情報' )
),
'public' => true,
'menu_position' =>4,
'has_archive' => 'gameinfo/archive/'
)
);
register_taxonomy(
'gameinfo-cat', /* タクソノミーの名前 */
'gameinfo', /* 大会情報投稿で設定する */
array(
'hierarchical' => true, /* 親子関係が必要なければ false */
'update_count_callback' => '_update_post_term_count',
'label' => '大会情報カテゴリー',
'singular_label' => '大会情報カテゴリー',
'public' => true,
'show_ui' => true,
'menu-order' => true
)
);
// ▲大会情報
// ▼大会結果
register_post_type( 'result', /* post-type */
array(
'labels' => array(
'name' => __( '大会結果' ),
'singular_name' => __( '大会結果' )
),
'public' => true,
'menu_position' =>5,
'has_archive' => 'result/archive/'
)
);
register_taxonomy(
'result-cat', /* タクソノミーの名前 */
'result', /* result投稿で設定する */
array(
'hierarchical' => true, /* 親子関係が必要なければ false */
'update_count_callback' => '_update_post_term_count',
'label' => '大会結果カテゴリー',
'singular_label' => '大会結果カテゴリー',
'public' => true,
'show_ui' => true,
'menu-order' => true
)
);
// ▲大会結果
}
// ▲▲カスタム投稿タイプ/カスタム分類の追加