Add Title Attribute to WordPress Image the_post_thumbnail

You can do that because you can add all the attributes you need:

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

Please read on in the Function Reference of the_post_thumbnail.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)