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?


This works for me:

<?php print render($content['field_tags']); ?>
  • 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 '12 at 2:29
  • Glad it works! Welcome. – ninjascorner Jun 21 '12 at 2:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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