How can I include featured images in my Wordpress RSS feed?

Including featured images in your WordPress RSS feed can significantly enhance the visual appeal of your auto newsletters. However, your feed may not include a featured image by default. Here's how to do it:

Using a WordPress Plugin

This is the simpler and more user-friendly method. We recommend using the "Featured Images in RSS" plugin. The plugin should automatically start including featured images in your RSS feed. You can manage the settings of this plugin by going to "Settings > Featured Images in RSS Feeds".

  1. Navigate to your WordPress dashboard.

  2. Click on "Plugins", then "Add New" on the left sidebar.

    Add new plugin in WordPress

  3. In the search bar, look for "Featured Images in RSS".

    Search for Featured Images in RSS

  4. Click "Install Now" next to the plugin, then click "Activate".

    Click Install Now, then click Activate
    And that's it! Using "Featured Images in RSS" plugin, you can manage the appearance of the feature image.

Adding Code Manually

If you're comfortable with dealing with code, you can manually add the following code to your site.

Please note: modifying your site’s code can have unintended side effects. If you’re not comfortable doing this, we recommend hiring a professional. AWeber Certified Experts are professionals we trust who can help with this process.

  1. Navigate to your WordPress dashboard.

  2. Click on "Plugins", then "Add New" on the left sidebar.

    Add new plugin in WordPress

  3. In the search bar, look for "WPCode".

    Search for WPCode

  4. Click "Install Now" next to the plugin, then click "Activate".

    Click Install Now, then Activate

  5. A new option will appear on the sidebar. Hover over "Code Snippets" and click on "+ Add Snippet".

    Hover over Code Snippets and click + Add Snippet

  6. Hover over "Add Your Custom Code (New Snippet)" and click "Use snippet". Paste the code below in the code area.
    function featuredtoRSS($content) { global $post; if ( has_post_thumbnail( $post->ID ) ){ $content = '<div>' . get_the_post_thumbnail( $post->ID, 'medium', array( 'style' => 'margin-bottom: 15px;' ) ) . '</div>' . $content; } return $content; } add_filter('the_excerpt_rss', 'featuredtoRSS'); add_filter('the_content_feed', 'featuredtoRSS');
    Click to add custom code, then paste provided code to code area

  7. Update the Code Type to "PHP Snippet". Title it appropriately (e.g., "Add Featured Images to RSS") and click on "Save Snippet".

    Update Code Type to PHP Snippet
    And that's it! Please note: modifying your site’s code can have unintended side effects. If you’re not comfortable doing this, we recommend hiring a professional. AWeber Certified Experts are professionals we trust who can help with this process.

Remember to always backup your website before making any changes. This ensures that you can restore your website to its previous state in case anything goes wrong. 

Have more questions? Submit a request