Eğer news sitemap olarak /feed'i eklemişseniz. Aşağıdaki kodu functions.php'ye eklemeniz yeterli olacaktır.
add_filter( 'the_content', 'featured_image_in_feed' );
function featured_image_in_feed( $content ) {
global $post;
if( is_feed() ) {
if ( has_post_thumbnail( $post->ID ) ){
$output = get_the_post_thumbnail( $post->ID, 'medium', array( 'style' => 'float:right; margin:0 0 10px 10px;' ) );
$content = $output . $content;
}
else{
$output = "https://guclumanset.com/wp-content/uploads/2021/02/son-dakika-guclumanset.jpg";
$content = $output . $content;
}
}
return $content;
}alttaki else kısımdaki img url'sini görsel olmayanlara koyacak görseldir.