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.
<a href="<?php print $url; ?>" class="search-result-img-wrapper">
<?php
print theme_image_style(array(
'style_name' => 'thumbnail',
'path' => $result['node']->field_image['und'][0]['uri'],
'alt' => $title,
'attributes' => array('class' => 'search-result-img'),
));
?>
</a>
<a href="<?php print $url; ?>" class="search-result-img-wrapper">
<?php
print theme_image_style(array(
'style_name' => 'thumbnail',
'path' => $result['node']->field_product_image['und'][0]['uri'],
'alt' => $title,
'attributes' => array('class' => 'search-result-img'),
));
?>
</a>
If I add fields like below, I get only the print out of one of the fields and not both.
<a href="<?php print $url; ?>" class="search-result-img-wrapper">
<?php
print theme_image_style(array(
'style_name' => 'thumbnail',
'path' => $result['node']->field_product_image['und'][0]['uri'],
'path' => $result['node']->field_image['und'][0]['uri'],
'alt' => $title,
'attributes' => array('class' => 'search-result-img'),
));
?>
</a>
What am I missing? Thanks much for your input.