Full size thumbnail image w/ alt tag title

by

Here is a quick example of how to add a large thumbnail image with the title as the Alt Tag attribute

<?php the_post_thumbnail( 'large', array( 'title' => get_the_title() ) ); ?>

You can replace ‘large’ with thumbnail, medium, medium_large, & full.

Leave a Reply

Your email address will not be published. Required fields are marked *


PageLines