Support » Plugins » Alt tag in image.php

  • Hello,
    I have added an image.php to the theme I use long time ago.
    Recently I saw the images don’t have an alt attribute although I add text in alt space when adding images to the post. I only have an alt tag showed (i see it in page’s html) for the image i post as image post, but no alts for the images in the galleries.
    Here’s how my image file looks like:

    <p align="center" class="attachment"><a href="http://www.pickmeupnews.com" title="Pick Me Up! News"><?php echo wp_get_attachment_image( $post->ID, 'Full Size' ); ?></a></p>
                    <div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></div>

    What should I do to get an alt tag for all the images I upload?
    Thanks

  • The topic ‘Alt tag in image.php’ is closed to new replies.