Displaying custom taxnomy link list using wp_list_categories
-
I’d like to make a list of links using
wp_list_categories()
for the custom taxonomies I created with CPT UI. I’ve tried approaches explained in roughly seven different articles, all to no avail.Example of one of the approaches I attempted:
<?php $customPostTaxonomies = get_object_taxonomies('awards'); if(count($customPostTaxonomies) > 0) { foreach($customPostTaxonomies as $tax) { $args = array( 'orderby' => 'name', 'show_count' => 0, 'pad_counts' => 0, 'hierarchical' => 1, 'taxonomy' => $tax, 'title_li' => '' ); wp_list_categories( $args ); } } ?>
Is there a specific, recommended approach when using CPT UI?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Displaying custom taxnomy link list using wp_list_categories’ is closed to new replies.