質問編集履歴

2

修正:

2018/02/07 10:27

投稿

emerica
emerica

スコア19

test CHANGED
File without changes
test CHANGED
@@ -24,11 +24,13 @@
24
24
 
25
25
 
26
26
 
27
+ ```
28
+
27
29
  $labels = array(
28
30
 
29
31
  "name" => __( 'エリアカテゴリ', '' ),
30
32
 
31
- "singular_name" => __( 'エリアカテゴリ', '' ),
33
+ "singular_name" => __( 'エリアカテゴリ', '' )
32
34
 
33
35
  );
34
36
 
@@ -52,7 +54,7 @@
52
54
 
53
55
  "query_var" => true,
54
56
 
55
- "rewrite" => array( 'slug' => 'custom', 'with_front' => true, ),
57
+ "rewrite" => true,
56
58
 
57
59
  "show_admin_column" => true,
58
60
 
@@ -60,11 +62,13 @@
60
62
 
61
63
  "rest_base" => "",
62
64
 
63
- "show_in_quick_edit" => true,
65
+ "show_in_quick_edit" => true
64
66
 
65
67
  );
66
68
 
67
69
  register_taxonomy( "custom", array( "post" ), $args );
70
+
71
+ ```
68
72
 
69
73
 
70
74
 

1

文言の修正

2018/02/07 10:27

投稿

emerica
emerica

スコア19

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,6 @@
1
1
  register_taxonomyにてカテゴリを分類いたしました。
2
2
 
3
- wp_term_taxonomyテーブルのtaxonomyは"cusutom"となっています。
3
+ wp_term_taxonomyテーブルのtaxonomyは"custom"となっています。
4
4
 
5
5
  共通のパーマリンク設定がカスタム構造の/%category%/%postname%/となっています。
6
6