WordPress.org

Ready to get started?Download WordPress

Forums

No RSS images for Featured Image (2 posts)

  1. Phil
    Member
    Posted 4 years ago #

    Using the new 'Featured Image' (no attachments) on posts.

    No images appear in RSS feeds.

    Using

    // THIS INCLUDES THE THUMBNAIL IN OUR RSS FEED
    function insertThumbnailRSS($content) {
    global $post;
    if ( has_post_thumbnail( $post->ID ) ){
    $content = '' . get_the_post_thumbnail( $post->ID, 'thumbnail' ) . '' . $content;
    }
    return $content;
    }
    
    add_filter('the_excerpt_rss', 'insertThumbnailRSS');
    add_filter('the_content_feed', 'insertThumbnailRSS');

    ...which shows a small thumbnail next to each one on the domain.com/feed

    but not on the:
    domain.com/category/feed

    Any ideas if the featured iages can be used in RSS feeds at all?

  2. Per http://dblume.livejournal.com/111459.html

    I think you need to wrap the image differently, though I could be wrong.

Topic Closed

This topic has been closed to new replies.

About this Topic