Celebrities in TV

Pin It

$tid = 3078;
$items = array();
$children = taxonomy_get_children($tid);
foreach ( $children as $child ) {
$count = db_result(db_query("SELECT COUNT(nid) FROM {term_node} WHERE tid = %d", $child->tid));
$items[] = l($child->name, ‘taxonomy/term/’. $child->tid). ‘ (‘.$count.’) ‘;
}
print theme(‘item_list’, $items);
?>

Check out my other online properties!!

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>