Feedにアイキャッチ画像を表示する
// Feedにアイキャッチ画像を表示する function post_thumbnail_feeds($content) { global $post; if(has_post_thumbnail($post->ID)) { $content = '<div>' . get_the_post_thumbnail($post->ID, array(150,150,true)) . '</div>' . $content; } return $content; } add_filter('the_excerpt_rss', 'post_thumbnail_feeds'); add_filter('the_content_feed', 'post_thumbnail_feeds');