回答編集履歴
3
誤字の修正。
test
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
[template_include](https://developer.wordpress.org/reference/hooks/template_include/)
|
1
|
+
WordPress の フィルターフック [template_include](https://developer.wordpress.org/reference/hooks/template_include/) を利用して、ページ名やスラッグで、条件判断して、テンプレートの読み込みを動的に変える方法でしょうか。
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
User Contributed Notes
|
5
|
+
上記 URL の User Contributed Notes 部分に 固定ページの名前によって、テンプレートを切り替えるコードがありますので、参考にしてください。
|
2
修正
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
[template_include](https://developer.wordpress.org/reference/hooks/template_include/) フックを利用して、ページ名やスラッグで、テンプレートの読み込みを動的に変えるでしょうか。
|
2
2
|
|
3
3
|
|
4
4
|
|
1
変更
test
CHANGED
File without changes
|