Ok, I found a way that works great for me here 🙂
<?php
$customPostTaxonomies = get_object_taxonomies('short_courses');
if(count($customPostTaxonomies) > 0)
{
foreach($customPostTaxonomies as $tax)
{
$args = array(
'orderby' => 'name',
'show_count' => 0,
'pad_counts' => 0,
'hierarchical' => 1,
'taxonomy' => $tax,
'title_li' => '',
'hide_empty' => FALSE
);
$categories = get_categories( $args );
foreach ( $categories as $category ) {
echo '<div class="sc-cat-items"><a href="' . get_category_link( $category->term_id ) . '">' . $category->name . '</a></div>';
}
}
}
?>
If anyone would like to expand on why the original didn’t work, please feel free…