Create Alias URL to taxonomy term page with TID I am trying to figure out how to create a url-alias friendly url to a taxonomy term page with only the tid of the term. I know drupal does this automatically in the node, but I am trying to do this in a block.

e.g. Where the term is "Texas" with tid 34, and the alias is to the taxonomy page is "/location/texas"

So, instead of creating a url to this "/taxonomy/term/34", I would like to create a url to the aliased version of that link, to /location/texas, just with the TID.

Using Drupal 7.15

Thanks!
If what you are asking is, "How can I create a link to a taxonomy term path alias if all I have is the TID," you can use drupal's built in l() function in any php function or template.  For example, if taxonomy/term/34 exists and location/texas exists as its alias and $tid equals 34...

&lt;?php print l('Texas Taxes', 'taxonomy/term/' . $tid); ?&gt;


...will create &lt;a href="/location/texas"&gt;Texas Taxes&lt;/a&gt; because l() will by default look up and use the alias for any system path.