the_post_thumbnail()
accepts second parameter $attr
, that’s array of options, so to display alt for image use something like this:
the_post_thumbnail( 'medium', array( 'alt' => 'Image alt' ) );
the_post_thumbnail()
accepts second parameter $attr
, that’s array of options, so to display alt for image use something like this:
the_post_thumbnail( 'medium', array( 'alt' => 'Image alt' ) );