Nov 19th, 2012
Here's how to get a taxonomy term's aliased path from its term id (tid) in Drupal 6.
<?php // drupal 6 // first, get a term object from a term ID $term = taxonomy_get_term($tid); // then, use the term object to get the unaliased path $taxonomy_path = taxonomy_term_path($term); // finally, lookup the path alias using drupal_lookup_path() $taxonomy_path_alias = drupal_lookup_path('alias', $taxonomy_path); // alternately, use drupal_get_path_alias() $taxonomy_path_alias = drupal_get_path_alias($taxonomy_path); ?>