Using php code and a node object, how can I detect whether or not the node's first term (or term in a chosen vocabulary) has a taxonomy image? Any help appreciated.
1 Answer
taxonomy_image_display
returns an empty string iff the term has no image.
Given a node $node
, the terms are stored in $node->taxonomy
as an array indexed by term ID (see taxonomy_nodeapi($node, $op = 'load')
).