Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #590489

    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?

    #590559

    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

    #1475060
    This reply has been marked as private.
    #1475076

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.