WordPress.org

Ready to get started?Download WordPress

Forums

Hide image RSS feed (3 posts)

  1. frenchtouchmusic
    Member
    Posted 1 year ago #

    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');
  2. esmi
    Forum Moderator
    Posted 1 year ago #

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

  3. frenchtouchmusic
    Member
    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags