Skip to main content

Magazine Issues

<?php
$vid = 9; /* <---- put correct vocabulary ID here */
$items = array();
$terms = taxonomy_get_tree($vid);
foreach ( $terms as $term ) {
$count = taxonomy_term_count_nodes($term->tid);
if ($count) { /* don't show terms with 0 count */
$items[] = str_repeat('>', $term->depth) . l($term->name,'taxonomy/term/'.$term->tid)." - ".$term->description;
}
} /* end foreach */
print theme('item_list', $items);
?>