Title: Remove from RSS feed
Last modified: June 25, 2023

---

# Remove from RSS feed

 *  [ruthee3](https://wordpress.org/support/users/ruthee3/)
 * (@ruthee3)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/remove-from-rss-feed/)
 * I use this in my functions.php to hide the like count from my RSS feeds. Otherwise
   it comes up a number (almost always 0 – because 0 likes at the time of posting)
   that makes no sense in there without any context:
 *     ```wp-block-code
       add_action( 'pre_get_posts', function( $query ) {
           if ( $query->is_main_query() && $query->is_feed && class_exists( 'Love_me' ) ) {
               remove_filter( 'the_content', array( Love_me::get_instance(), 'love_me_filter_the_content' ) );
           }
       } );
       ```
   
 * Not all hosts allow you to edit files and it’s not worthwhile to have a child
   theme always. Would be nice if this is supported directly as a plugin default
   or a preference checkbox.

The topic ‘Remove from RSS feed’ is closed to new replies.

 * ![](https://ps.w.org/love-me/assets/icon-256x256.png?rev=1776409)
 * [Love Me](https://wordpress.org/plugins/love-me/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/love-me/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/love-me/)
 * [Active Topics](https://wordpress.org/support/plugin/love-me/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/love-me/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/love-me/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [ruthee3](https://wordpress.org/support/users/ruthee3/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/remove-from-rss-feed/)
 * Status: not resolved