I am trying to load a taxonomy term that is associated with the node in php. There are a lot of information on how to do this in Drupal 7 but not in Drupal 6. My current solution is:

var_dump($node->field_project_type);
$term=taxonomy_get_term($node->project_type['und'][0]['tid']);
$result=field_view_field('taxonomy_term',$term,'field_desired_field');
echo render($result);

But field_view_field is apparently not defined in Druapl 6. I would appreciate any help!

Comments

Jaypan’s picture

You've already loaded the term into $term, so what is it you are trying to do from there?