2

I have a custom content type that I can select a vocab term for when editing the page (category more or less). How do I print this term to my page via node.tpl.php?

I've tried several different ways, but to no avail so far. Any ideas?

1 Answer 1

2

This works for me:

<?php print render($content['field_tags']); ?>
2
  • Oh geez duh, just like I'm printing every other field... I'm not sure why something so obvious escaped me ;-) Thank you very much!
    – Jolva
    Jun 21, 2012 at 2:29
  • Glad it works! Welcome. Jun 21, 2012 at 2:48

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.