0

I have a taxonomy attached to my nodes. The taxonomy has an extra image field attached to it. I can find the taxonomy title field at:

$content['field_news_outlet'][0]['#title']

but I can't seem to find the image field I attached to this taxonomy.

If I check with kpr() or dpm():

$term=taxonomy_term_load($tid);
$value=field_get_items('taxonomy_term',$term,'field_news_outlet_logo');

I can see the field name there but the image uri doesn't seem to appear anywhere in there. The only image uri I can find is the one for the site's logo.

1

I found the problem. I hardcoded $tid as 1 in my template file.

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.