{"id":970,"date":"2018-10-20T15:47:04","date_gmt":"2018-10-20T10:17:04","guid":{"rendered":"https:\/\/awpguide.com\/?p=970"},"modified":"2019-01-19T13:19:46","modified_gmt":"2019-01-19T07:49:46","slug":"how-to-add-image-thumbnail-to-rss-feeds","status":"publish","type":"post","link":"https:\/\/awpguide.com\/wp-guides\/how-to-add-image-thumbnail-to-rss-feeds\/","title":{"rendered":"How To Add Image Thumbnail To RSS Feeds"},"content":{"rendered":"

Most of us\u00a0are building an email list and sending newsletters to the subscribers. But, there’s one hack available to show your post thumbnail on the newsletter. In this post, we are going to show you how can you add image thumbnail to RSS feeds.<\/p>\n

Last time, we have shown you how to disable RSS feeds<\/a>. Before starting this, you need to make sure that you have set a featured image to your posts and custom post types.<\/p>\n

How To Add Image Thumbnail To RSS Feeds<\/h2>\n

First of all, go to your WordPress admin area, and the editor. You need to choose the functions file from there.<\/p>\n

\"Add<\/p>\n

Make sure that you are using a WordPress child theme<\/a>. Now copy the below code.<\/p>\n

\r\nfunction rss_post_thumbnail($content) {\r\nglobal $post;\r\nif(has_post_thumbnail($post->ID)) {\r\n$content = '<p>' . get_the_post_thumbnail($post->ID) .\r\n'<\/p>' . get_the_content();\r\n}\r\nreturn $content;\r\n}\r\nadd_filter('the_excerpt_rss', 'rss_post_thumbnail');\r\nadd_filter('the_content_feed', 'rss_post_thumbnail');\r\n<\/pre>\n

Paste it on the child theme’s functions file and update it.<\/p>\n

\"how<\/p>\n

That’s it. From now on, your post’s featured image will be added to the RSS feed. You can check it by visiting your feed URL or by sending a test newsletter.<\/p>\n

By default, WordPress’s feed will be like www.example.com\/feed\/<\/p>\n

We hope you enjoyed the read and found this post useful. If you did, please consider sharing this post with your friends and fellow bloggers on social media. For more related posts, check out our blog section.<\/p>\n

For building your email list, you may want to consider using tools like OptinMonster<\/a> and Bloom<\/a>.<\/p>\n

UPDATE<\/h4>\n

Would you like to meet the powerhouse? A lead generation plugin with lots of features for an affordable price! Then you should check out MailOptin!<\/p>\n

\"mailoptin<\/p>\n

The best lead generation plugin for WordPress.<\/p>\n

Using MailOptin, you will be able to create different types of optin forms which converts your website visitors to loyal customers!<\/p>\n

If you need to learn more about the MailOptin plugin, please feel free to check out our MailOptin review<\/a>.<\/p>\n

For more related posts, you may want to check out our blog section<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"

Most of us\u00a0are building an email list and sending newsletters to the subscribers. But, there’s one hack available to show … <\/p>\n

Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":1019,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/awpguide.com\/wp-json\/wp\/v2\/posts\/970"}],"collection":[{"href":"https:\/\/awpguide.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/awpguide.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/awpguide.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/awpguide.com\/wp-json\/wp\/v2\/comments?post=970"}],"version-history":[{"count":0,"href":"https:\/\/awpguide.com\/wp-json\/wp\/v2\/posts\/970\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/awpguide.com\/wp-json\/wp\/v2\/media\/1019"}],"wp:attachment":[{"href":"https:\/\/awpguide.com\/wp-json\/wp\/v2\/media?parent=970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/awpguide.com\/wp-json\/wp\/v2\/categories?post=970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/awpguide.com\/wp-json\/wp\/v2\/tags?post=970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}