質問編集履歴
4
コードを修正しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
// 固定ページ カスタム投稿は無視
|
12
12
|
|
13
|
-
if (($slug) || ($post->post_type == 'co
|
13
|
+
if (($slug) || ($post->post_type == 'custom') || ($post->post_type == 'page')) {
|
14
14
|
|
15
15
|
return $slug;
|
16
16
|
|
3
パーマリンクの設定を修正しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,7 +38,7 @@
|
|
38
38
|
|
39
39
|
◆パーマリンク設定
|
40
40
|
|
41
|
-
/%year%%monthnum%%day%
|
41
|
+
/%year%%monthnum%%day%%postname%/
|
42
42
|
|
43
43
|
|
44
44
|
|
2
わかりやすいタイトルにしました。
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
wordpress パーマリンク
|
1
|
+
wordpress パーマリンクを連番に 日付でリセット
|
test
CHANGED
File without changes
|
1
パーマリンクの設定を追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,6 +36,10 @@
|
|
36
36
|
|
37
37
|
```
|
38
38
|
|
39
|
+
◆パーマリンク設定
|
40
|
+
|
41
|
+
/%year%%monthnum%%day%-%postname%/
|
42
|
+
|
39
43
|
|
40
44
|
|
41
45
|
上記、コードでパーマリンクに2桁の連番を自動的につける実装を行ったのですが
|