Drupal taxonomy term list
Here’s a useful script for anyone who wants to display a list of terms for any given vocabulary. It seems that many people are asking this question and I’ve seen some very complicated solutions to the problem. However there was one that came very close from tela-web.com
I adapted the script very slightly as I wanted to be able to display a list of terms for a particular vocabulary, but only if a published node had been associated with it. So I added the taxonomy_term_count_nodes() function to check for that.

<?php
$vid = 2; /* <—- put correct vocabulary ID here */
$terms = taxonomy_get_tree($vid);
print "<ul>";
foreach ( $terms as $term ) {
if (taxonomy_term_count_nodes($term->tid) > 0) {
print "<li>".
l($term->name,’taxonomy/term/’.$term->tid, array(’title’ => $term->name)).
"</li>";
}
} /* end foreach */
print "</ul>";
?>
Simply go and create a new block and add this code (make sure you turn on PHP code for the input format!) and plug in the relevant $vid (vocabulary ID). Hope this helps.
You can learn more about the functions associated with the taxonomy module at Drupal.org
March 17th, 2010 at 9:19 pm
Nice guide I have scouring the web for a simple to follow guide for starting to use dates.
May 22nd, 2010 at 12:25 pm
I located your web site looking google for a related subject and came to this. I’ve been browsing the website for a while. Thanks a lot for sharing your thoughts. It is very well composed and very easy to understand. I wish i had time and determination to make an useful blog post just like yours. A lot of info on all the statements. I saved your rss feed to stay up to date of any changes and saved the blog . By the way I like your theme too. Continue doing what you are doing! Can I link this specific webpage from my personal web-site?