質問編集履歴
3
get termsの使い方を追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -82,6 +82,64 @@
|
|
82
82
|
|
83
83
|
|
84
84
|
|
85
|
+
```PHP
|
86
|
+
|
87
|
+
$args = array(
|
88
|
+
|
89
|
+
'orderby' => 'name',
|
90
|
+
|
91
|
+
'order' => 'ASC',
|
92
|
+
|
93
|
+
'hide_empty' => true,
|
94
|
+
|
95
|
+
'exclude' => array(),
|
96
|
+
|
97
|
+
'exclude_tree' => array(),
|
98
|
+
|
99
|
+
'include' => array(),
|
100
|
+
|
101
|
+
'number' => '',
|
102
|
+
|
103
|
+
'fields' => 'all',
|
104
|
+
|
105
|
+
'slug' => '',
|
106
|
+
|
107
|
+
'parent' => '',
|
108
|
+
|
109
|
+
'hierarchical' => true,
|
110
|
+
|
111
|
+
'child_of' => 0,
|
112
|
+
|
113
|
+
'childless' => false,
|
114
|
+
|
115
|
+
'get' => '',
|
116
|
+
|
117
|
+
'name__like' => '',
|
118
|
+
|
119
|
+
'description__like' => '',
|
120
|
+
|
121
|
+
'pad_counts' => true,
|
122
|
+
|
123
|
+
'offset' => '',
|
124
|
+
|
125
|
+
'search' => '',
|
126
|
+
|
127
|
+
'cache_domain' => 'core'
|
128
|
+
|
129
|
+
);
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
$termsParentCat = get_terms( $taxonomies, $args );
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
(全<?php echo $termsParentCat->count ?>件)
|
138
|
+
|
139
|
+
```
|
140
|
+
|
141
|
+
|
142
|
+
|
85
143
|
### 補足情報(FW/ツールのバージョンなど)
|
86
144
|
|
87
145
|
|
2
不足していたソースコードを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -35,6 +35,8 @@
|
|
35
35
|
|
36
36
|
|
37
37
|
```PHP
|
38
|
+
|
39
|
+
$term = get_queried_object();
|
38
40
|
|
39
41
|
<?php $children = get_term_children($cat, 'category'); ?>
|
40
42
|
|
1
不足していたソースコードを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|