Skip to main content
edited tags
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284
Source Link
Dustin
  • 291
  • 2
  • 4
  • 17

Get taxonomy term field value?

I have some taxonomy terms that have an image field in them. I am trying to get the value of the image field in my templates. How can I do this? The field's name is field_header_image.

I have this so far but it does not work..

$headerimg = field_view_field('taxonomy_term', $term, 'field_header_image'); 
print render($headerimg);

I'm guessing I need something else for taxonomy_term but I'm not sure what that should be.