How to get parent to taxonomy term
This is how you can get the parent term to a taxonomy term.
<?php
$tid = 4;
parent = taxonomy_get_parents($tid);
echo "<pre>";
print_r($parent);
echo "</pre>";
//Will print something like this
/*
Array
(
[3] => stdClass Object
(
[tid] => 3
[vid] => 1
[name] => My parent term name
[description] =>
[weight] => 0
)
)
*/
?>