Hi there,
You could use a function like this:
add_filter( 'post_thumbnail_html','tu_add_category_featured_image' );
function tu_add_category_featured_image( $output ) {
$return = $output;
$cat = get_the_category( get_the_ID() );
if ( isset( $cat ) && ! is_singular() ) {
foreach( $cat as $cat_name ) {
$return .= '<div class="featured-image-category">' . $cat_name->name . '</div>';
}
}
return $return;
}
Then style it with some CSS:
.post-image {
position: relative;
}
.featured-image-category {
position: absolute;
top: 10px;
left: 10px;
}