Display the taxonomy term name in the page.tpl from a node I want to show the term name in the header for every node. Whats the best way, espacially if the node has 2 fields with taxonomy terms and the page is in different languages.

This display nothing, but gives me also no errors:

&lt;?php if ( !empty($node) &amp;&amp; $node-&gt;type == 'content-type') {
  print render(field_custom('node', $node, 'field_custom', array('label'=&gt;'hidden', )));
} 
?&gt;


EDIT

preprocess_node:

global $language;
$wrapper = entity_metadata_wrapper('node',$variables['node']);
$variables['term1'] = $variables['term1'] -&gt;language($language-&gt;language)-&gt;field_term_ref-&gt;value()-&gt;name;


page.tpl.php:

&lt;?php print $term1 ?&gt;


I don`t get any term name.
I would use an entity metadata wrapper for this:

// Load the current active language.
global $language;
// Put the node object in a wrapper.
$wrapper = entity_metadata_wrapper('node', $node);
// Get the term object.
$term = $wrapper-&gt;language($language)-&gt;field_term_ref_1-&gt;value();
// Translate the term.
$translated_term = i18n_taxonomy_term_get_translation($term, $language);
// Pass the term name to page.tpl.
$variables['term1'] = $translated_term-&gt;name;

// The same for term 2.

// Now you can print them in your page.tpl.
print $term1;


Not sure if the language part works, though.