lista kategorii custom post
pobranie listy category name & link custom post
<?php $args = array( 'taxonomy' => 'my-category', 'orderby' => 'name', 'order' => 'ASC', 'show_count' => 0, 'pad_counts' => 0, 'hierarchical' => 1, 'title_li' => '', 'hide_empty' => 1 ); ?> <ul class="house-category"> <?php wp_list_categories( $args ); ?> </ul>
pozwala schować puste kategorie – 'hide_empty’ => 1