print out multiple values of a taxonomy field In a taxonomy I have some fields for the terms. To print out 1 of these fields in a node.tpl I found this code:

&lt;?php $term=taxonomy_term_load($node-&gt;field_hotel_tx_atmosphere['und'][0]['tid']);
$result=field_view_field('taxonomy_term',$term,'field_tx_headline','text');
print render($result); ?&gt;


But this way I get only the first value - there are multiple terms selected.

How can I get all selected terms printed out?
0 in $node-&gt;field_hotel_tx_atmosphere['und'][0]['tid'] means that you are taking only first term so you should loop through array to get all terms.

I recommend entity_metadata_wrapper (available with Entity API module):

$wrapper = entity_metadata_wrapper('node', $node);
foreach ($wrapper-&gt;field_hotel_tx_atmosphere-&gt;getIterator() as $delta =&gt; $term_wrapper) {
  // prepare and render field value:
  $result = field_view_field('taxonomy_term', $term_wrapper-&gt;value(), 'field_tx_headline', 'text');
  print render($result);
}


or build a View to display selected data in the right way.