I want to add a title to my featured image, how I can add this item:
$attr = array(
'title' => 'howdy partner',
'alt' => 'a nice view of the ocean',
);
// pick one, note 2 or 3 arguments:
the_post_thumbnail( 'post-thumbnail', $attr );
echo("<a href='$p->permalink'>". // null for current $post->ID (use within loop)
get_the_post_thumbnail( null, 'post-thumbnail', $attr ).
"</a>");
my site is : https://abzarwp.com