If you are using WordPress to manage your websites, then you must be aware of secondary feeds. By default WordPress publishes multiple RSS feeds such as comments feeds, archive feeds, post feeds, category feeds and the links to these feeds are also published in HTML source. Sometimes, you might not want to publicize all of those feeds in your HTML pages; as you might want your readers to keep track of main feed of your site or you wish to redirect all the secondary feeds to main feed. Whatever, if you ever wished to know how to hide secondary feeds urls from your wordpress HTML pages, then here’s how you can do that.
Just add the below lines to function.php file located inside your theme director,
remove_action( 'wp_head', 'feed_links', 2 ); remove_action( 'wp_head', 'feed_links_extra', 3 );
I love bugs and I love fixing them!