views:

604

answers:

2

Taxonomy term path:

http://api.drupal.org/api/function/taxonomy_term_path

Returns the unaliased path. I used pathauto to give the term alias, how can I return the aliased version?

Thanks.

+3  A: 

Use drupal_get_path_alias()

$path_alias = drupal_get_path_alias(taxonomy_term_path($term) );
Owen
A: 

you want to explore the url() function as well, I use it all of the time with node ids.

$href = url('node/'.$nid);
electblake

related questions