Support » Fixing WordPress » Hide image RSS feed

  • Hello,

    I am trying to get a RSS feed that shows the entire post and the featured image.
    Right now, I’ve got the featured image + other images of the post that appear in the feed. How could I change that?

    Here is the code I have:

    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');
Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    (@esmi)

    Forum Moderator

    Just navigate to Settings -> Reading and change the “For each article in a feed, show” to “Full”.

    It doesn’t work!
    I want to have my full article in RSS feed but no pictures.
    Is there a code for that?
    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide image RSS feed’ is closed to new replies.