amato / ----------- Goto Github PK
View Code? Open in Web Editor NEW/*てすと*/ <?php $terms = get_terms("category", "fields=all&get=all"); //分類で設定した名称 $count = count($terms); if ( $count > 0 ){ echo "<ul>"; foreach ( $terms as $term ) { echo "<li>term_id: " . $term->term_id . "</li>"; echo "<li>name: " . $term->name . "</li>"; echo "<li>slug: " . $term->slug . "</li>"; echo "<li>term_group: " . $term->term_group . "</li>"; echo "<li>term_taxonomy_id: " . $term->term_taxonomy_id . "</li>"; echo "<li>taxonomy: " . $term->taxonomy . "</li>"; echo "<li>description: " . $term->description . "</li>"; echo "<li>parent: " . $term->parent . "</li>"; echo "<li>count: " . $term->count . "</li>"; echo "<br />"; } echo "</ul>"; } ?> /*てすと*/