実現したいこと
タクソノミーページにターム1、ターム2、ターム3の一覧表示ページを作りたいです。
前提
Custom Post Type UIプラグインを使って、
カスタム投稿タイプ名・・・商品
タクソノミー名・・・ブランド
ターム名・・・ナイキ、アディダス、プーマ
を作成しました。
タクソノミーのターム一覧ページ
http://test.local/ブランド/ナイキ/
では
taxonomy-ブランド-ナイキ.php
は表示されます。
が、
タクソノミー一覧ページを作りたく
http://test.local/ブランド/
だと
taxonomy-ブランド.php
が表示されずに
index.php
が表示されます。
taxonomy-ブランド.php
の中は
<?php get_header(); ?> <?php get_footer(); ?>
です。
Custom Post Type UIプラグインの設定が違っているのでしょうか?
以下Custom Post Type UIの設定です。
name: brand label: ブランド名 singular_label: ブランド名 description: "" public: true publicly_queryable: true hierarchical: true show_ui: true show_in_menu: true show_in_nav_menus: true query_var: true query_var_slug: "" rewrite: true rewrite_slug: "" rewrite_withfront: true rewrite_hierarchical: false show_admin_column: false show_in_rest: true show_in_quick_edit: true rest_base: "" rest_controller_class: "" meta_box_cb: ""
試したこと
下記質問を参考にしてみたのですが、うまくいきません。
https://teratail.com/questions/161407
https://teratail.com/questions/158663
補足情報(FW/ツールのバージョンなど)
WordPress 5.4.2
Custom Post Type UI
バージョン 1.7.4
よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー