Usefull Links

We are regularly out on the web. When we find a great site we list it here for you to enjoy.
From the list below choose one of our weblink topics, then select a URL to visit.
<?php

$vid = 2; // Set the vid to the vocabulary id of the vocabulary you wish to list the terms from
$items = array();
$terms = taxonomy_get_tree($vid);
foreach ( $terms as $term ) {
$count = db_result(db_query("SELECT COUNT(tn.nid) FROM {term_node} tn INNER JOIN {node} n ON tn.nid = n.nid WHERE tn.tid = %d AND ( n.language='en' OR n.language='')", $term->tid));
$items[] = l($term->name, "taxonomy/term/$term->tid") . " ($count)";
}
if ( count($items) ) { print theme('item_list', $items);}
?>