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

Website Design; the Process

The web industry is, perhaps, is the most evolving industries by nature. Designers have to keep up with new and emerging trends and advancements so that they can make sure that the website they create is one that serves the brand, the customers, and something that outperforms the competition. While some view it as a… Read More

Minimize WP HTML w/o a plugin

Here is the code (adding it to your WordPress’s functions.php file) to minimize your themes HTML code without a plugin. Add to Functions.php