You may need to clear your Feeds cache to see the image after adding this code.
function wpsitesdotnet_post_thumbnail_rss($content) {
global $post;
if ( has_post_thumbnail( $post->ID ) ){
$content="" . get_the_post_thumbnail( $post->ID, 'rss-image', array( 'class' =>
'aligncenter' ) );
}
return $content;
}
add_filter('the_content_feed', 'wpsitesdotnet_post_thumbnail_rss');
add_filter('the_excerpt_rss', 'wpsitesdotnet_post_thumbnail_rss');
Source http://wpsites.net/web-design/add-featured-image-thumbnail-from-post-to-rss-feed/
Related Posts:
- Get all posts in RSS
- How to get SimplePie fetch_feed without stripping iframe code?
- Cannot get add_feed to work
- How to create additional full text RSS feeds
- Custom RSS feed forces download
- How to add category exclusion to rss feed
- Style RSS Feed for a human?
- is it possible to get complete wordpress blog post in a rss feed?
- How to remove published date from RSS feed
- Disable only the main feed?
- display featured image in RSS feed
- WordPress RSS File Template
- WordPress Add [cdata] to title tag in rss feed
- RSS feed site image custom resolution
- Remove a certain post type from appearing in all RSS feeds
- How can I get RSS feed for a custom page?
- How to add featured image or custom field to xml feed?
- How can I remove image from feed?
- RSS Feed Behaviour (Inc. Feedburner)
- How can I minimize the content of my RSS feed to fit more items in Feedburner’s 512k limit?
- Site Rss not seen by browser
- Two RSS feeds, different items limit?
- One reason for changing the GUID
- Help Me Choose RSS or XML-RPC
- RSS Widget on theme
- Dynamically import posts from one wordpress site to another
- how improve website mainpage loading
- Add ![CDATA] to permalink rss
- Creating an individual RSS feed for each site user
- restricted rss feed
- How to set the cache for the built-in SimplePie feed parser?
- How to modify the image size in RSS (mailchimp compatibility)?
- Showing Post ID on RSS
- How to use force_feed with fetch_feed
- fetch_feed works on localhost but not on server
- WordPress appends RSS item with unwanted content
- Feed only showing 1 result? [closed]
- Where does WordPress default SimplePie save cache data?
- How to make this plugin more efficient
- How to Fetch Rss Feeds From Other Websites
- Is there a way to fetch RSS feed by date range rather than number of items?
- RSS Feed Empty in Firefox
- Display RSS feed using pagination
- How to output unlimited RSS Feed items
- How do I create an rssfeed from the contents on this page?
- fetch_feed returning rss feeds on same server as empty
- Email notification of new posts that match query
- Remove ‘More..’ link from RSS feed
- Excerpt formatting for Google News Feed [closed]
- Feed error: A feed could not be found at youtube.com/… (1 post) [closed]
- WordPress cache feeds
- How do I use fetch_feed() to pull in a large number of posts?
- HTML Validation fails because of ampersands in RSS link
- Help with Magpierss and WordPress
- How can I control what / how much text is in my RSS feeds?
- CDATA error for RSS feed
- Create an RSS feed of all posts
- Disable Sharedaddy in Feeds
- I’m not able to get RSS feed working. I get ‘XML parsing failed’
- Reply via email (mailto link) in RSS feed at the end of each post
- Trying to build Google Sitemap feed and it’s downloading instead of displaying in browser
- I want to remove “continue reading…” in rss feed
- How do I edit my default RSS Feed?
- How do I use 2 modified feed templates?
- WordPress RSS feed?
- Add a Subscribe to Blog link next to comments
- RSS feed widget for specific categories with latest posts?
- WordPress keeps truncating my feeds and I can’t stop it
- Allow WordPress users to ‘follow’ RSS feeds from blog authors
- Showing RSS feed via fetch_feed. How to show the site title of the feed?
- Style wordpress image captions in RSS
- Comments RSS Feed showing repeating title
- How to add RSS Icon/link as a widget?
- RSS feed error stopping parsing of page template
- Use Feedburner instead of default feed on WordPress.com?
- Best way to setup RSS feed for a custom WP blog plugin
- Custom RSS Feed Overwrites Permalink
- Code to mimic the RSS widget
- Change pubDate in rss feed in another format
- How to remove private posts from RSS feeds?
- Preventing RSS feeds access to the authenticated uses only
- Fetch feed from multiple sources
- Custom RSS formatting
- Help with WordPress RSS Validation Error
- Prevent incoming $_GET requests
- How to get RSS feed for custom field in post
- Importing large number of RSS feeds
- JW Player – How to genrate RSS of video playlist in wordpress
- RSS Feed setting limit for email subscriptions
- Show posts without content in RSS 2 FEED
- Send value to RSS feed to create custom feed
- are there any downsides to increasing the number of most recent items in a feed
- Full sized images in RSS Feed
- RSS feed not displaying excerpt text?
- Create a “feed” from one WordPress site to another?
- RSS Feed Custom Title? (code placing) [duplicate]
- RSS Feed broken
- images are broken
- Editing wp-includes/feed.php
- Remove or truncate site rss in