Can’t Display Featured Image in RSS Feed

I’m currently working on a test website on my local server using WordPress version 3.4.2. I’ve tried various different solutions. Some have included installing various plugins, such as WP RSS Images and Featured Image in RSS. Even tried some of the solutions from the following posts:

Yet, it seems the images aren’t being posted to the RSS feeds. Is there another solution that can solve this problem?

Read More

The RSS feed I’m trying to include images is this link.

Any help is appreciated!

Related posts

Leave a Reply

2 comments

  1. 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.