Get term ID of a field vocabulary in for templating
It sounds like you need to inspect your node.
You can do this with the vital devel module.

https://www.drupal.org/project/devel

Once installed it will give you a few new tabs on your node page to see how the node is constructed when it is loaded using node_load($nid) and rendered using node_view($node).

In the node template itself, you will have access to the rendered node as per node_view($node) so anything you see in the devel modules render page you can print out in your node.tpl.php

Devel uses the excellent Krumo library to display PHP objects and array nicely, this is also accessible using dpm($object); however it can not be used in templates, but you can call krumo directly using krumo($node); 

So in your node template, call krumo($node); to find the field you want, then once found add it to a variables $tid = $node-&gt;taxonomy[LANGUAGE_NONE][0]['tid']; and pass it to you link print l("taxonomy", "view/$tid");