Full size thumbnail image w/ alt tag title

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

Alt Tag attribute

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

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

Isaac Adams-Hands

Full Stack Developer, Digital Marketer, and InfoSec enthusiast. He received his Bachelor’s Degree from the University of Western Sydney and his Business Diploma from Georgian College before joining various marketing positions in search portals, e-commerce, higher education, and addiction recovery services.

Follow @ twitter

Related posts

WordPress templates

I keep forgetting the code to create a custom WordPress template, so I’m adding it to my blog Gist

Stylize Font Awesome

Here is a little guide on how to Rotate, Flip, Resize, Compress, Color, Lighten & Bold Font Awesome: