質問編集履歴
2
見やすいように修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -29,6 +29,7 @@
|
|
29
29
|
|
30
30
|
### 該当のソースコード
|
31
31
|
|
32
|
+
```ここに言語を入力
|
32
33
|
register_post_type('works',
|
33
34
|
array(
|
34
35
|
'label' => '仕事',
|
@@ -38,9 +39,9 @@
|
|
38
39
|
'show_in_menu' => true,
|
39
40
|
'capability_type' => 'post',
|
40
41
|
'hierarchical' => false,
|
41
|
-
|
42
|
+
'rewrite' => array('slug' => 'works','with_front' => false),
|
42
43
|
'query_var' => false,
|
43
|
-
|
44
|
+
'has_archive' => true,
|
44
45
|
'exclude_from_search' => false,
|
45
46
|
'menu_position' => 6,
|
46
47
|
'supports' => array(
|
@@ -88,6 +89,7 @@
|
|
88
89
|
}
|
89
90
|
|
90
91
|
add_action( 'init', 'add_taxonomies', 0 );
|
92
|
+
```
|
91
93
|
|
92
94
|
|
93
95
|
### 試したこと
|
1
タグの追加
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|