Ahoy all, so, having some issues with displaying specific fields related to taxonomy terms in a page I created (page--taxonomy.tpl.php)
Essentially, I am trying to set a background image to a div, to pull from an image field (field_hero_image)on the taxonomy term. I have this working for normal nodes just fine with the following code:
<div id="herowrap" style="background:url(<?php echo file_create_url($node->field_hero_image[$node->language]['uri']); ?>) no-repeat center center;background-size: cover;">
However, been having difficulty understanding how to modify this to pull this same image field from taxonomy terms.
It needs to be in page--taxonomy.tpl.php as it is being pulled before the node.tpl.php is being called (if i understand correctly?)
Any reason I can pull this easily from nodes, and not for taxonomy terms?
Thanks for any help!