Displaying Taxonomy Term Field for Multiple Entries on a Taxonomy Term List View I'm using a view to override my taxonomy term pages to display content fields.  One of those fields is another taxonomy term (applicable divisons).  Displaying the titles of terms applied to the content is no problem (multiple field settings).

The problem comes in here.  I need to display icons that represent each of those terms that is an image field in the term itself (division icon).  I added a relationship to the view (Content:Taxonomy Terms on node).  I can then add the field, but it limits it to one of the terms/icons and it doesn't have a "multiple field settings" area.

I've searched for this quite a while and it's probably an obvious answer, but it's one I can't find or figure out.

Answer:
This isn't pretty, but it's getting me the data I want.  It needs to be cleaned up.  Thanks for the help!

&lt;?php
foreach($data-&gt;field_field_applicable_divisions as $mydata) {
    if (isset($mydata['raw']['tid'])) { 
        $term = taxonomy_term_load($mydata['raw']['tid']);
        echo "&lt;div class='term_icon'&gt;";
        echo "&lt;img src='" . image_style_url( 'icon', $term-&gt;field_division_icon['und'][0]['uri']) . "' title='" . $term-&gt;field_division_icon['und'][0]['field_file_image_alt_text']['und'][0]['value'] . "' alt='" . $term-&gt;field_division_icon['und'][0]['field_file_image_alt_text']['und'][0]['value'] . "'class='term-image' /&gt;";
        echo "&lt;/div&gt; ";
    }
}
?&gt;


Also, to get a legend in the header or footer:

&lt;?php
foreach(taxonomy_get_tree(7) as $icon) {
    $term = taxonomy_term_load($icon-&gt;tid);
    echo "&lt;div class='term_icon'&gt;";
    echo "&lt;img src='" . image_style_url( 'icon', $term-&gt;field_division_icon['und'][0]['uri']) . "' title='" . $term-&gt;field_division_icon['und'][0]['field_file_image_alt_text']['und'][0]['value'] . "' alt='" . $term-&gt;field_division_icon['und'][0]['field_file_image_alt_text']['und'][0]['value'] . "'class='term-image' /&gt; - " . $term-&gt;field_division_icon['und'][0]['field_file_image_alt_text']['und'][0]['value'];
    echo "&lt;/div&gt; ";
}
?&gt;
You are going to have to adjust this to your own use case, but the approach I would use is a little different.

First, delete the relationship. 

Add (or configure) the term reference field (field_divisions?) in your query. Set it to no label, and exclude from display. Rewrite the output to [field_tags-tid] . This will give you a list of term id's.

Install and enable the Views PHP module.

EDIT:

The $row variable does not play well with multiple values, so we will switch to the $data variable.

In your view, add a Global:PHP field, and in the Output code box enter something like:

&lt;?php
  // Select your field object.
  $obj = $data-&gt;_field_data;
  // Then get your field array
  $divisions = $obj-&gt;field_divisions[LANGUAGE_NONE]
  foreach($divisions as $division) {
    if ( is_numeric( $division['tid'] ) ) {
      $term = taxonomy_term_load($division['tid']);
      $icons= $icons. "&lt;div class='term-icons'&gt;";

      if (isset($term-&gt;division_icon['und'][0]['uri'] )) {
        $icons= $icons. "&lt;div class='term_icon'&gt;&lt;img src='" . image_style_url( 'icon_style', $term-&gt;division_icon['und'][0]['uri']) . "' class='term-image' /&gt;&lt;/div&gt; ";
      }  
      $icons = $icons . "&lt;/div&gt;";
    }
  } 
  print $icons;
?&gt;


Make sure the PHP field follows the term reference field so the $row values are available to the PHP field. Then style your icons to display as you wish.