ニーソ美脚画像でRSS

WordPress RSS サムネイル

function.phpに追加
function diw_post_thumbnail_feeds($content) {
global $post;
if(has_post_thumbnail($post->ID)) {
$content = '<div class="myRSS_thumb">' . get_the_post_thumbnail($post->ID, array(240,240)) . '</div>' . $content;
}
return $content;
}
add_filter('the_excerpt_rss', 'diw_post_thumbnail_feeds');
add_filter('the_content_feed', 'diw_post_thumbnail_feeds');

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です