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

Namecheap’s free DYNDNS

Stumbled upon Namecheaps free DYNDNS service this morning, and I can’t be more impressed. All I did was buy a 0.66 cent domain Namecheap Enabled the Dynamic DNS in the Advanced DNS settings: Then added the client to my home media server: Windows: Direct UpdateMac: NC DNS Updater, IP MonitorUnix: DDClient , IPCheckOther: Java Dynamic… Read More

Add a shortcode to add_shortcode in functions.php

This drove me a little crazy one afternoon. I had to add a gravity forms shortcode to a new add_shortcode script in functions.php To accomplish this, I added this to my code: ‘ . do_shortcode($content) . ‘ Here is how it looks in its working example. I work best by watching. Too many people just… Read More