By default, RSS won’t display. You have to use RSS2. However this will help you. Paste it in your functions.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' );
Hope it helps.
Related Posts:
- How to grab first image attached to post and display in RSS feed?
- Filter to remove image dimension attributes?
- Stop wordpress from hardcoding img width and height attributes
- Programmatically get images by URL and save in uploads folder
- How to automatically add rounded corners to thumbnails?
- WordPress adding scaled images that don’t exist (1536×1536 and 2048×2048)
- Download an image from a webpage to the default uploads folder
- How to change image type for specific size?
- Is there a hook which fires after all thumbnails are generated?
- is it possible to replace the use of gd_lib with imagick or ImageMagick?
- Featured image shortcode
- How to find attachment by it’s name?
- Displaying images from external RSS feeds?
- Change WordPress image URLs via filter
- get_the_post_thumbnail_url with an unregistered size
- Cropped featured image replaces original image in gallery
- Image Scaling using get_the_post_thumbnail issue in WordPress
- Any easy way to automatically set the first inline image in a post as the thumbnail?
- Remove title attribute from images
- Insert an image into a post by API
- How to create thumbnails with a fixed width, so all of them will have the same width?
- How to limit number of images being printer out in “Set Featured Image” pop up?
- Black and White thumbnails
- Programatically creating image attachments from local URLs and setting featured image
- How can I add the “Use as featured image” to a custom metabox?
- set_post_thumbnail_size not cropping featured images, but reducing proportionally
- Double thumbnails?
- No srcset for hard-cropped thumbnails
- Is it possible to prevent users from uploading small images?
- Displaying a featured image (only img url) as the img src?
- How to output placeholder image if no featured image set?
- Featured Images on Front Page
- Download button for Featured Image in every post – automatically
- Removing Title Tag from Thumbnails
- Show prev and next post links for parent post of current image in attachment page?
- Setup A Default Featured Image
- When displaying the featured image, is has_post_thumbnail() necessary?
- Find posts without featured image? [duplicate]
- How do I add a featured image to a single post page?
- Add a featured image in my theme?
- Disable wordpress image sizes generation
- Get original image from thumbnail URL
- Change the RSS feed image
- Featured Image .svg height and width 1px only
- How to check if user is uploading/setting an image as a featured image?
- Images are randomly deleted from server
- Frontend Post – Allow Only Image File Upload
- attach unattached featured images to respective posts
- Images not working using Featured post
- Add instructions to featured image
- WordPress reduces the full size image and uses it as the original
- How do I get more image editing options in the admin?
- Thumbnails are bigger in size than the original image
- Remove image classes from post thumbnail output
- Lazyload post thumbnails
- Exclude featured image from gallery in wp-admin
- Special purpose photos with each post
- SVG Featured image not shown in twitter
- Featured images not displaying at full resolution
- Woocommerce featured image of page – not product
- Set Post Image Using Shortcode
- Print specific image size in galley loop
- WordPress crops images differently on retina screens?
- Can’t seem to attach uploaded image to post and set it as thumbnail
- How do I create an alternate RSS feed for tags with custom image sizes for MailChimp?
- Big Image on Featured Post, Normal on Single Post
- offload media to external services [closed]
- Store Snapshot created via wordpress to use with lightbox
- How to stop thumbnail generation from some images and different size thumbnail generate
- Update old Post image metadata to ‘thumbnail’ wp_attached_file
- How to stop wordpress always displaying full-res images
- How can I add a “data-pin-nopin” the featured image html?
- WP keeps looking up post thumbnail on https even though wp-config says http
- Images stopped loadding after adding SSl
- WordPress PNG compression issue
- How to replace images?
- Fixing image names for a site being restored
- force feed readers to pick atom version
- Setup Featured image on all posts from thesis thesis_post_image custom field?
- Export xml use/import images from theme directory
- Custom Loop, Match Category with Page: How to display post featured image?
- How to add image in rss?
- Generate images to be associated for tag and category?
- How do I get my main image to stretch the full length of the screen?
- Get custom thumbnail sizes [duplicate]
- Filter for post_thumbnail: link to small src and add data-attribute [duplicate]
- Bulk-add featured images in posts with no featured image
- Should I not compress my jpeg files before uploading to avoid double compression?
- Custom responsive ‘featured image’ sizes
- Modify RSS – remove image and add text
- Is it possible to preserve original images in order to change image size later?
- the_post_thumbnail(‘medium’) setting some images width=1 height=1
- Generating a certain sized thumbnail on the fly?
- How do you import images from a URL in your post?
- How to set uploaded image as featured image wordpress
- What can i do add title to ‘large’ image?
- Retrieve Image Attachments Getting Post Thumbnail Image First
- Height and width attribute not setting by the_post_thumbnail
- How to display original unmodified thumbnail
- add_image_size function not working