質問編集履歴
1
コードおよび設定などの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -31,3 +31,113 @@
|
|
31
31
|
- Advanced Custom Fields PRO 5.7.12
|
32
32
|
|
33
33
|
- Custom Post Type UI 1.6.1
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
---
|
38
|
+
|
39
|
+
### パーマリンク構造
|
40
|
+
|
41
|
+
https://www.hoge.co.jp/fugefuge//%postname%/
|
42
|
+
|
43
|
+
### カスタムタクソノミーの登録内容(register_taxonomy で設定した内容)
|
44
|
+
|
45
|
+
CPT UIの設定を(ラベルやディスクリプション以外)登録済画面からそのままコピペしました
|
46
|
+
|
47
|
+
```setting
|
48
|
+
|
49
|
+
name: name
|
50
|
+
|
51
|
+
label: ラベル
|
52
|
+
|
53
|
+
singular_label: ラベル
|
54
|
+
|
55
|
+
description:ディスクリプション
|
56
|
+
|
57
|
+
public: true
|
58
|
+
|
59
|
+
publicly_queryable: true
|
60
|
+
|
61
|
+
hierarchical: true
|
62
|
+
|
63
|
+
show_ui: true
|
64
|
+
|
65
|
+
show_in_menu: true
|
66
|
+
|
67
|
+
show_in_nav_menus: true
|
68
|
+
|
69
|
+
query_var: true
|
70
|
+
|
71
|
+
query_var_slug: ""
|
72
|
+
|
73
|
+
rewrite: true
|
74
|
+
|
75
|
+
rewrite_slug: ""
|
76
|
+
|
77
|
+
rewrite_withfront: true
|
78
|
+
|
79
|
+
rewrite_hierarchical: false
|
80
|
+
|
81
|
+
show_admin_column: true
|
82
|
+
|
83
|
+
show_in_rest: true
|
84
|
+
|
85
|
+
show_in_quick_edit: ""
|
86
|
+
|
87
|
+
rest_base: ""
|
88
|
+
|
89
|
+
rest_controller_class: ""
|
90
|
+
|
91
|
+
meta_box_cb: ""
|
92
|
+
|
93
|
+
```
|
94
|
+
|
95
|
+
### taxonomy.php の中身
|
96
|
+
|
97
|
+
```php
|
98
|
+
|
99
|
+
<?php get_header(); ?>
|
100
|
+
|
101
|
+
<?php get_footer(); ?>
|
102
|
+
|
103
|
+
```
|
104
|
+
|
105
|
+
### .htaccess の内容
|
106
|
+
|
107
|
+
```htaccess
|
108
|
+
|
109
|
+
#/.htaccess mbstring.e off
|
110
|
+
|
111
|
+
php_flag mbstring.encoding_translation off
|
112
|
+
|
113
|
+
php_value default_charset "UTF-8"
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
php_value upload_max_filesize xxM
|
118
|
+
|
119
|
+
php_value post_max_size xxM
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
# BEGIN WordPress
|
124
|
+
|
125
|
+
<IfModule mod_rewrite.c>
|
126
|
+
|
127
|
+
RewriteEngine On
|
128
|
+
|
129
|
+
RewriteBase /fugefuge/
|
130
|
+
|
131
|
+
RewriteRule ^index.php$ - [L]
|
132
|
+
|
133
|
+
RewriteCond %{REQUEST_FILENAME} !-f
|
134
|
+
|
135
|
+
RewriteCond %{REQUEST_FILENAME} !-d
|
136
|
+
|
137
|
+
RewriteRule . /fugefuge/index.php [L]
|
138
|
+
|
139
|
+
</IfModule>
|
140
|
+
|
141
|
+
# END WordPress
|
142
|
+
|
143
|
+
```
|