I refer to this post where I have just taken my code from: How to display a listing template of a certain taxonomy?
I am trying to create a page template that will list all categories in "servicecats" taxonomy which is linked to the custom post-type "Services".
In the page template I have used the code taken from the link above:
<?php
$taxonomy = 'servicecats';
$orderby = 'name';
$show_count = 0; // 1 for yes, 0 for no
$pad_counts = 0; // 1 for yes, 0 for no
$hierarchical = 1; // 1 for yes, 0 for no
$title = '';
$args = array(
'taxonomy' => $taxonomy,
'orderby' => $orderby,
'show_count' => $show_count,
'pad_counts' => $pad_counts,
'hierarchical' => $hierarchical,
'title_li' => $title
);
?>
<?php wp_list_categories( $args ); ?>
When I view the page, it just says "No categories" although I do have 4 set up, the taxonomy and post-type are both hierarchical.
Any suggestions? Thanks