質問編集履歴
8
本文の調整
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|
7
誤字の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
### 記述途中で送信されてしまったので。編集・追記しました。現状が本来の質問文です。
|
2
|
+
|
1
3
|
### カスタム投稿のURLが想定通りにならない
|
2
4
|
|
3
5
|
いつも、こちらではお世話になっております。自分でもお返しをといくつかの質問に回答したりしているのですが、
|
6
誤字の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -107,7 +107,7 @@
|
|
107
107
|
http://foo.bar.net/support2-cat/mental-illness/ → ●ページが表示される
|
108
108
|
http://foo.bar.net/mental-illness/うつ病/ → 404エラーになる
|
109
109
|
http://foo.bar.net/support2-cat/mental-illness/support2-tag/うつ病/ → 404エラーになる
|
110
|
-
http://foo.bar.net/
|
110
|
+
http://foo.bar.net/うつ病/ → 404エラーになる
|
111
111
|
http://foo.bar.net/support2-tag/うつ病/ → ●ページが表示される
|
112
112
|
|
113
113
|
### 成し遂げたい事
|
5
書式の改善
title
CHANGED
File without changes
|
body
CHANGED
@@ -121,4 +121,8 @@
|
|
121
121
|
single-support2.php
|
122
122
|
taxonomy-support2.php
|
123
123
|
taxonomy-support2-cat.php
|
124
|
-
taxonomy-support2-tag.php
|
124
|
+
taxonomy-support2-tag.php
|
125
|
+
|
126
|
+
|
127
|
+
何か不足情報などありましたらご指摘ください。すぐに対応します。
|
128
|
+
なにとぞ、諸先輩方、よろしくお願いしますm(_ _)m
|
4
やったことの追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -114,4 +114,11 @@
|
|
114
114
|
http://foo.bar.net/mental-illness/
|
115
115
|
http://foo.bar.net/mental-illness/うつ病/
|
116
116
|
|
117
|
-
上記の時のみページが表示されて、他はエラーになるようにしたい。
|
117
|
+
上記の時のみページが表示されて、他はエラーになるようにしたい。
|
118
|
+
|
119
|
+
### 用意してあるテンプレートファイル
|
120
|
+
archive-support2.php
|
121
|
+
single-support2.php
|
122
|
+
taxonomy-support2.php
|
123
|
+
taxonomy-support2-cat.php
|
124
|
+
taxonomy-support2-tag.php
|
3
書式の改善
title
CHANGED
File without changes
|
body
CHANGED
@@ -97,6 +97,8 @@
|
|
97
97
|
|
98
98
|
**カスタムパーマリンクの設定**
|
99
99
|

|
100
|
+
**カテゴリーの設定**
|
101
|
+

|
100
102
|
**タグの設定**
|
101
103
|

|
102
104
|
|
2
やったことの追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -106,4 +106,10 @@
|
|
106
106
|
http://foo.bar.net/mental-illness/うつ病/ → 404エラーになる
|
107
107
|
http://foo.bar.net/support2-cat/mental-illness/support2-tag/うつ病/ → 404エラーになる
|
108
108
|
http://foo.bar.net//うつ病/ → 404エラーになる
|
109
|
-
http://foo.bar.net/support2-tag/うつ病/ → ●ページが表示される
|
109
|
+
http://foo.bar.net/support2-tag/うつ病/ → ●ページが表示される
|
110
|
+
|
111
|
+
### 成し遂げたい事
|
112
|
+
http://foo.bar.net/mental-illness/
|
113
|
+
http://foo.bar.net/mental-illness/うつ病/
|
114
|
+
|
115
|
+
上記の時のみページが表示されて、他はエラーになるようにしたい。
|
1
書式の改善
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
|
6
6
|
### 概要
|
7
7
|
現在障害者の支援事例のページ作成を請け負っているのですが、
|
8
|
-
|
8
|
+
**register_post_type**してカテゴリー用に**register_taxonomy**、タグ用に**register_taxonomy**しています。
|
9
9
|
|
10
|
-
パーマリンクの設定も行っているのですが、想定通りのURLでは表示されず。カテゴリー名の前に
|
10
|
+
パーマリンクの設定も行っているのですが、想定通りのURLでは表示されず。カテゴリー名の前にregister_taxonomyに指定したカテゴリーのslugを書いてそのあとにslugの値のカテゴリー名を書くと表示されます。
|
11
11
|
|
12
12
|
**https://foo.ber.com/カテゴリー名/タグ名/記事タイトル**
|
13
13
|
|
@@ -96,4 +96,14 @@
|
|
96
96
|
```
|
97
97
|
|
98
98
|
**カスタムパーマリンクの設定**
|
99
|
-

|
99
|
+

|
100
|
+
**タグの設定**
|
101
|
+

|
102
|
+
|
103
|
+
### 現在の状況
|
104
|
+
http://foo.bar.net/mental-illness/ → 404エラーになる
|
105
|
+
http://foo.bar.net/support2-cat/mental-illness/ → ●ページが表示される
|
106
|
+
http://foo.bar.net/mental-illness/うつ病/ → 404エラーになる
|
107
|
+
http://foo.bar.net/support2-cat/mental-illness/support2-tag/うつ病/ → 404エラーになる
|
108
|
+
http://foo.bar.net//うつ病/ → 404エラーになる
|
109
|
+
http://foo.bar.net/support2-tag/うつ病/ → ●ページが表示される
|