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 1


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')).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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