WordPress.org

Support

Support » Requests and Feedback » No RSS images for Featured Image

No RSS images for Featured Image

  • Phil
    Member

    @owendevelopment

    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?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘No RSS images for Featured Image’ is closed to new replies.