1

How do I display a field 'category' (so as 'tags') in the node.tpl.php?

1
  • 1
    Every field that is associated to a node is shown in the node view page, if the field is not set to be hidden. Then, the home page (a.k.a. the front page) doesn't use node.tpl.php.
    – apaderno
    May 9, 2011 at 23:01

1 Answer 1

0

Every field that is associated to a node is shown in the node view page, if the field is not set to be hidden.
You don't need to change the template file used for nodes, as it shows all the node fields by default. If you are not seeing a field is probably because that field settings are set to not show that field.

As you are referring to the home page (a.k.a. the front page), which normally shows the teaser of nodes promoted to front page, check the field settings for the teaser view mode.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.