Combining fields and avoiding duplicate display I use below code for printing out images in search results. I get double print outs on the ALT tags. If I disable ALT tags all displays just fine.

&lt;a href="&lt;?php print $url; ?&gt;" class="search-result-img-wrapper"&gt;
    &lt;?php
      print theme_image_style(array(
        'style_name' =&gt; 'thumbnail',
        'path' =&gt; $result['node']-&gt;field_image['und'][0]['uri'],
        'alt' =&gt; $title,
        'attributes' =&gt; array('class' =&gt; 'search-result-img'),
      ));
    ?&gt;
  &lt;/a&gt;
  &lt;a href="&lt;?php print $url; ?&gt;" class="search-result-img-wrapper"&gt;
    &lt;?php
      print theme_image_style(array(
        'style_name' =&gt; 'thumbnail',
        'path' =&gt; $result['node']-&gt;field_product_image['und'][0]['uri'],
        'alt' =&gt; $title,
        'attributes' =&gt; array('class' =&gt; 'search-result-img'),
      ));
    ?&gt;
  &lt;/a&gt;


If I add fields like below, I get only the print out of one of the fields and not both.

&lt;a href="&lt;?php print $url; ?&gt;" class="search-result-img-wrapper"&gt;
    &lt;?php
      print theme_image_style(array(
        'style_name' =&gt; 'thumbnail',
        'path' =&gt; $result['node']-&gt;field_product_image['und'][0]['uri'],
        'path' =&gt; $result['node']-&gt;field_image['und'][0]['uri'],
        'alt' =&gt; $title,
        'attributes' =&gt; array('class' =&gt; 'search-result-img'),
      ));
    ?&gt;
  &lt;/a&gt;


What am I missing? Thanks much for your input.
I don't think this will necessarily fix your problem, but you're calling the theme_image_style incorrectly, it should be:

theme('image_style', array(
  'style_name' =&gt; 'thumbnail',
  'path' =&gt; $result['node']-&gt;field_image['und'][0]['uri'],
  'alt' =&gt; $title,
  'title' =&gt; $title,
  'attributes' =&gt; array('class' =&gt; 'search-result-img'),
));


Your second example is wrong, you can't call path twice.