默认情况下,RSS不会显示。您必须使用RSS2。然而,这将帮助您。将其粘贴到函数中。php:
function insert_thumbnail_into_feed() {
global $post;
if ( has_post_thumbnail( $post->ID ) ){
// replace thumbnail with yours
$content = \'<p>\' .get_the_post_thumbnail( $post->ID, \'thumbnail\' ) .\'</p>\';
}
// get post content and replace feed content with
// you can also limit/filter the content to exclude shortcodes and HTML code etc.
$content .= \'<p>\' .get_the_content() .\'</p>\';
return $content;
}
add_filter( \'the_excerpt_rss\', \'insert_thumbnail_into_feed\' );
add_filter( \'the_content_feed\', \'insert_thumbnail_into_feed\' );
希望有帮助。