Tagged: rss
This thread explains how to remove the featured image from RSS feeds:
https://kriesi.at/support/topic/rss-feed-how-can-i-supress-the-featured-image/
using this code:
remove_filter(‘the_content’, ‘featureimage_for_feeds’);
It doesn’t appear to work, however, as I get updated content after I change posts in the feed, but it still includes the featured image. Does this method work?
Hi!
Where did you place the code? are you using a child theme? try this instead:
add_action('init', function() {
remove_filter(‘the_content’, ‘featureimage_for_feeds’);
});
Regards,
Josue
Hi,
That is not possible, unfortunately. You can try this modification but we can’t guarantee that it will work:
add_action('template_redirect', function() {
if (is_single(123)) {
remove_filter('the_content', 'featureimage_for_feeds');
}
});
Make sure the is_single argument (123) is set to the actual ID or slug of the post.
Best regards,
Ismael