By Anonymous (not verified) on
For example in the node teaser, I want it to print "Forum Topic", not "forum". My theme includes $type variable with prints "forum". How do I add a variable to I can print "Forum Topic" on the teaser?
For example in the node teaser, I want it to print "Forum Topic", not "forum". My theme includes $type variable with prints "forum". How do I add a variable to I can print "Forum Topic" on the teaser?
Comments
Try changing print $type; to
Try changing
print $type;toprint node_get_types('type', $type);.That changed it from printing
That changed it from printing "forum" to printing "1", as well as a long list of errors:
Or how can I call the
Or how can I call the vocabulary name to the node.tpl.php template?