質問編集履歴
3
試したこと 事例追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -165,5 +165,13 @@
|
|
165
165
|
](http://taneakashi.ad-mk.com/custom-taxonomy-2nd-404.html)
|
166
166
|
こちらはそもそもWP_Query()を使用していないので当てはまりませんでした。
|
167
167
|
|
168
|
+
また、
|
169
|
+
https://teratail.com/questions/158663?link=qa_related_pc
|
170
|
+
上記質問の
|
171
|
+
```
|
172
|
+
add_rewrite_rule('投稿タイプ/([^/]+)/?$', 'index.php?カスタムタクソノミー=$matches[1]', 'top');
|
173
|
+
```
|
174
|
+
こちらをカスタムタクソノミーをAAA_cat、投稿タイプをAAAに修正し追加しても変わりませんでした。
|
175
|
+
|
168
176
|
足りない情報がございましたらご指摘ください。
|
169
177
|
どうぞよろしくお願いいたします。
|
2
カスタムタクソノミーに関する記述のコードの誤字修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -60,7 +60,7 @@
|
|
60
60
|
function add_taxonomy() {
|
61
61
|
register_taxonomy(
|
62
62
|
'AAA_cat',
|
63
|
-
'
|
63
|
+
'AAA',
|
64
64
|
array(
|
65
65
|
'label' => 'AAAカテゴリ',
|
66
66
|
'singular_label' => 'AAAカテゴリ',
|
1
カスタム投稿タイプに関する記述 のコードの誤字を修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -39,7 +39,6 @@
|
|
39
39
|
__カスタム投稿タイプに関する記述__
|
40
40
|
```
|
41
41
|
function create_post_type_column() {
|
42
|
-
register_post_type( 'column',
|
43
42
|
register_post_type( 'AAA',
|
44
43
|
array(
|
45
44
|
'label' => 'AAA',
|