BerkayTosun adlı üyeden alıntı

functions.php dosyasını açın ;

function cwc_rss_post_thumbnail($content) {
global $post;
if(has_post_thumbnail($post->ID)) {
$content = '

. get_the_post_thumbnail($post->ID) .
'

' . get_the_content();
}

return $content;
}
add_filter('the_excerpt_rss', 'cwc_rss_post_thumbnail');
add_filter('the_content_feed', 'cwc_rss_post_thumbnail');


Şu kodu ekleyin.


Merhaba, functions.php içinde tam olarak nereye eklemek gerekiyor kodu?