• Even without using the shortcode to ingest a RSS feed, the plugin automatically adds images to ALL of your RSS feed. This should be conditionalized and only included when using your shortcode. As right now we are having double images in our feeds because we already have code in place to add images.

    // include the thumbnail in the rss feed for self-hosted sources
    function wp_rss_retriever_add_thumbnail_to_rss($content) {
        global $post;
        if ( has_post_thumbnail( $post->ID ) ){
            $content = '' . get_the_post_thumbnail( $post->ID, 'large', array( 'style' => 'float:left; margin:0 15px 15px 0;' ) ) . '' . $content;
        }
        return $content;
    }
    add_filter('the_excerpt_rss', 'wp_rss_retriever_add_thumbnail_to_rss');
    add_filter('the_content_feed', 'wp_rss_retriever_add_thumbnail_to_rss');

    That is the function, if there was a filter to be able to disable this automatic insertion of images that would be fantastic.

  • The topic ‘Shouldn’t Automatically Add Images to RSS Content’ is closed to new replies.