I have a theme that uses TimThumb to generate thumbnail images on a gallery page. The problem is that image alt tags are not showing for each image on the main gallery pages, see here:
I've tried to generate the alt tag by adding a custom field in each post/ portfolio item, called "alt_tag" and then calling it in the category.php file in my theme:
$alttag = get_post_meta($post->ID, 'alt_tag', true);
<div class="imgHentry"> <?php the_post_thumbnail( 'thumbnail' ); ?> alt="<?php echo get_post_meta($att, 'alt_tag', true); ?>" <div class="linkIcon" style="width:150px; height:150px;"> <a href="<?php the_permalink(); ?>" class="goto-icon" style="width:150px; height:150px;"></a> </div> </div><!-- .imgHentry -->
I found on this forum a similar question: alt attributes not showing on pages
But unfortunately can't seem to cobble together a solution that works!