FacetWP – force get_the_post_thumbnail() to include a title tag

mgibbs189

{{gist file=”functions.php” lang=”php”}}
ID );

if ( ! empty( $title ) ) {
$attr[‘title’] = $title;
}
}

return $attr;
}, 10, 2 );
{{/gist}}