Print taxonomy term for theming nodes I'm not a PHP developer, so I have a problem with customizing a theme.

I create a vocabulary "City" and a term "Shiraz", then a field "field_city" as a taxonomy term in my content type.

Now I want to print this field, so in the tpl file I write the following code:

&lt;?php print render($content['field_city']); ?&gt;


but nothing happens.
What am I missing?
Try this out :


Make sure you set the right display of the field, like the following picture.
loop through Items and render vocab fields.  


&lt;?php foreach ($content['field_city']['#items'] as $item): ?&gt;
   &lt;?php print render($item['taxonomy_term']-&gt;name); ?&gt;
&lt;?php endforeach; ?&gt;


Note : print only name field, if you have another fields in your vocabulary add them, like $item['taxonomy_term']-&gt;some_field