Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sorry for this title.

I've created 2 custom post types called 'audio' and 'video'. I share them a taxonomy called 'category' with 4 terms 'cat1', 'cat2',...

In my 'audio' template page, I'd like to insert a list of category terms that should link to an archive page of all 'audio' posts of the selected category.

For this I use wp_list_categories():

$args = array(
    'post_type' => 'audio',
    'orderby' => 'name',
    'show_count' => 0,
    'pad_counts' => 0,
    'hierarchical' => 1,
    'taxonomy' => $tax,
    'hide_empty' => 1,
    'exclude' => 1,
    'show_option_none' => '',
    'title_li' => ''
wp_list_categories( $args );

The result is not as expected, I got a link to the archive page of that category but not of 'audio' custom post type. Then it shows only the regular posts (which are not welcome) and no 'audio' posts.

Obviously, I got a link like:


And I would like something like:



share|improve this question
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.