title: Get a field value from a taxonomy_term the "right way"
body: <p>I am trying to get the value of various fields from taxonomy terms (and I'd like to do it the right way, i.e. not <code>$term-&gt;field_foo['und'][0]['value']</code>)</p>
  
  <p>I'm able to do this reliably for nodes and adapted my method for taxonomy terms, but it doesn't seem to be working.  Here is my code:</p>
  
  <pre><code>$field = field_get_items('taxonomy_term', $term, 'field_foo');
  $value = field_view_value('taxonomy_term', $term, 'field_foo', $field[0]);
  $rendered = render($value);
  </code></pre>
  
  <p>In troubleshooting this, I can see that field_get_items correctly returns an array... if I insert a var_dump (of $field) after the first line there, i get this:</p>
  
  <pre><code>array (size=1)
    0 =&gt; 
      array (size=1)
        'value' =&gt; string '1' (length=1)
  </code></pre>
  
  <p>Yet field_view_value returns an empty string... again a var_dump (of $value) after the second line results in this:</p>
  
  <pre><code>array (size=2)
    '#markup' =&gt; string '' (length=0)
    '#access' =&gt; boolean true
  </code></pre>
  
  <p>Can anyone see where I'm going wrong?</p>