Want create site? Find Free WordPress Themes and plugins.

I decided to look at my blog feed at http://echo.com.ng/feed and I discovered that it displayed without images. Now this isn’t too design-friendly at all. You would agree with me that the best way to engage your website/blog readers is to add an image in your RSS feed (preferably your featured image).

Must read: How to share WordPress posts with featured images and increase social network impact

How to Include an Image in your RSS feed

Take a look at this block of code

//Function to include an image in your RSS feed (featured image)
function featured_image_in_rss($content)
global $post;
if (has_post_thumbnail($post->ID))
$content = get_the_post_thumbnail($post->ID, 'full', array('style' => 'margin-bottom:10px;')) . $content;
return $content;
add_filter('the_excerpt_rss', 'featured_image_in_rss');
add_filter('the_content_feed', 'featured_image_in_rss');

Add this code to the functions.php file in your WordPress installation and save it. Reload your browser and you should see your WordPress blog feed displaying your featured image.

Include image in rss feed
Include image in rss feed

Must read: How smart is your phone 1 – RSS Feeds

Have you tried this tweak? Did it work for you? Or did you experience issues?Please leave a comment below. And don’t forget to like and share with friends.


Code source: http://wordpress.org/support/topic/thumbnailsfeatured-images-in-rss-feed-in-30

Did you find apk for android? You can find new Free Android Games and apps.

Leave a Reply