0

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

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

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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