D7 - Print node taxonomy terms including custom term field as CSS Class I have a list of possible taxonomy terms (vocab is called Categories) that can be referenced on a given node. For this particular vocabulary, I have a custom field called field_icon_class. The intention here is to make use of CSS Sprites, so when the terms for the page are rendered, they hopefully get printed out with the field as the CSS Class for the individual taxonomy term. 

I've tried numerous ways to get these to render the way I would like to no avail. I've tried:

taxonomy_term_load_multiple($node-&gt;field_categories);


along with a combination of other iterative statements which weren't successful. Ideally, I would like for each taxonomy term for that node to render along the following lines:

&lt;div class="[field_icon_class]"&gt;[taxonomy term name]&lt;/div&gt;


Any ideas how this can be accomplished, or any module exists to do so? Much thanks!
Are you cool with using views?   I do this type of thing all the time on my site.  If you are then reply back and I'll post an example.