I created four vocabularies for the "article" content type.
I want to output the vocabulary which belongs to the node; when I used print render($conetent['field_vocab'])
, it output the vocabulary, but the HTML structure is too bad; more useless <div>
and classes make me crazy. In order to remove them, I output it like this:
$content['body']['#object']->field_vocab['zh-hans'][0]['taxonomy_term']->name;
It's too long, and it makes me crazy too. If the vocabularies contain more than one taxonomy term, it only prints one.
Is there a better way to output the vocabulary?