I need to get the taxonomy from the $content array to print in the node template. How can I do it? I tried with $content['taxonomy']. Where can I get a guide with all params in $content array?

  • what version of Drupal do you use?
    – Andrew
    Commented Jul 27, 2015 at 3:41
  • Hi. Drupal 7...
    – Paralosreg
    Commented Jul 27, 2015 at 13:27
  • 1
    print render($content['field_my_term_field'] should work
    – Andrew
    Commented Jul 27, 2015 at 13:32

1 Answer 1


$content contains the renderable elements of your node (see documentation on node.tpl.php). This contains the node body, links, and other custom fields you've added to your node type. As Andrew suggested, the drupal_render() function can print individual fields or all fields (render($content)).

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.