Use image from taxonomy term as exposed filter option I created a view which has an exposed filter for taxonomy terms. Now the next step is to theme the options. I tried the module "Better exposed Filters" but I wasn't satisfied. I would like to have images to click on instead the standard filter. I already have stored the images in the taxonomy fields, so every term has it own image. 

I tried to create a template file for the filter, but I don't have any access to the fields, where the image is stored. I could do some hardcoded stuff, but I want it as generic as possible.

Has anyone an idea how to achieve it?
Use "Better exposed Filters" and choose its Display setting as Checkbox
Now you have to do form alter like this

function THEMENAME_form_views_exposed_form_alter(&amp;$form, &amp;$form_state) {
  foreach ($form['TAXONOMY_ELEMENT']['#options'] as $tid =&gt; &amp;$name) {
      $term = taxonomy_term_load($tid);
      $name = '&lt;img src="' . file_create_url($term-&gt;IMAGE_FIELD_NAME['und'][0]['uri']) . '" /&gt;';
  }
}


In my case :: 
TAXONOMY_ELEMENT = field_type_tid
IMAGE_FIELD_NAME = field_term_image