Remove Category, Tag and Author Feed Links From the Head
Stops WordPress from advertising separate feeds for every category, tag, author, search and archive page, while keeping your main feed link.
Opens WPIDE on
Code
foreach ( array( 'category', 'tag', 'tax', 'author', 'search', 'post_type_archive' ) as $wpide_feed_type ) {
add_filter( 'feed_links_extra_show_' . $wpide_feed_type . '_feed', '__return_false' );
}
Notes
The feeds still work if someone visits them directly. Use the Remove Comment Feeds snippet for comment feed links.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.