Following command hides comments feed for posts (WP 4.4+ required!), but custom pages still have comments feed displayed, even if comments are disabled for such page:
add_filter( 'feed_links_show_comments_feed', '__return_false' );
To resolve this, I had to add this addidtional code too:
function remove_comments_rss( $for_comments ) {
return;
}
add_filter('post_comments_feed_link','remove_comments_rss');
Related Posts:
- Add Custom Fields to Custom Post Type RSS
- How to Make a Separate RSS Feed for Each Custom Post Type
- How can I generate a RSS feed based on a custom WP_Query?
- Custom post types – RSS lastBuildDate issue
- Add Taxonomy Values Within a Custom Post Type RSS Feed
- Adding posts of custom type into the main feed
- Add Content Exclusively to a Custom Post Type Feed
- Include only recents custom posts in WP rss feed
- Custom taxonomy in custom post RSS feed
- Display custom fields from custom posts in RSS feed
- 404 in custom post type feed with mistake permalink
- Custom rewrite to fetch feed data
- Creating separate feeds for custom post types
- How to fetch custom post types with its full data on wordpress?
- wp3 custom post types rss
- Disable permalinks, but allow RSS feeds
- WordPress feed only shows first page of category
- Changing the RSS feed titles not working
- creat filter with wp_query
- A method for ordering mixed dates in search result loop (theory only, no actual code)
- Using taxonomy term in CPT permalink – Pages 404’s
- Remove a div from RSS feed
- How can I made custom taxonomies relationship?
- WooCommerce sort products by the actual product width(not the shipping width)
- Custom post URL 404 error
- How to change the post type a theme shows by default?
- filter custom post in rest api with custom function
- Single post with a Custom Post Type returns 404, when archives of the CPT work correctly
- Filter hierarchical custom post type admin page by parent, and include children & grandchildren
- Set a CPT slug as a base name for all the taxonomies
- Sort and filter custom post type posts by custom taxonomy
- Versioned Custom Post Type (Not the same as revisions)
- How to prevent a CPT’s slug and page slug from conflicting with each other?
- WordPress randomly shows 404 errors
- Loop filtering Custom Post Types and/or Categories
- search suggest – filter post type
- the_content filter on some post types only not working
- What is best way to prevent access to Custom Post Types unless authenticated when the post type has an archive and is publicly queryable?
- Parent Page and Breadcrumb URL’s for Custom Post Types Not Working
- Filtering posts list table
- Custom post type archive pagination 404
- Custom filter function not working with Custom post type
- Custom post type permalink tag 404
- Add custom post type drafts to RSS feed
- Custom post type / taxonomy rewrite archive page 2 gives 404
- Using a custom post type for an RSS feed only
- Is it possible to have a custom post type with feed but without the archive?
- Filter Posts from the Main Query
- Categories filtering in new post
- Hierarchical permalinks for custom post type and taxonomy
- How to use manage_$post_type_posts_columns with underscore in post type?
- How does the filter post_updated_messages work?
- Search filter triggered & sort by custom post type
- Top Level pages in wordpress giving 404, but child pages working fine
- How to order posts of a custom post type by date DESC in dashboard Admin?
- Custom post type RSS feed, multiple post published on same day bug
- How can I show 1 featured post in a styled element, and the next few below differently styled
- cutsom posts 404ing
- Custom post type pagination 404
- How can I add a filter to a particular post format?
- Page not found for custom post type UI plugin and taxonomy
- Is there any way to get list of all possible filter hooks for all post types?
- Can I display custom post types in home.php or need page template?
- How to solve this custom post type goes to 404 page?
- Create new custom post and post category of same name
- Custom post type single page (single-{CPT-name}) 404 when slug includes hyphens
- wordpress remove views from action links in a custom post
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- 404 Error on form submission within custom post type
- wp_insert_post wrong post type [closed]
- Custom WP_Query always respond with 200 status even when no entry
- Filter posts by tax (dropdown) and meta value
- page not found for single-type.php file
- Custom taxonomy page returns 404
- How can I remove filters from custom post types?
- One Custom post type 404’s others don’t
- sortable columns for multiple custom post types not working
- I need to add a filter to prepend the term ‘National – ‘ to the post title if the post is tagged to multiple states
- How do I add custom HTML to the content of an archive page’s posts?
- Only show posts with a specific term of an associated taxonomy in a custom post type archive
- REST filters only firing when I have a param set
- Custom taxonomy template list not working (404)
- Custom post type permalink returns 404 when set to private
- Custom post type slug 404
- How to filter a custom post type by custom taxonomy without 404
- How to add filter in custom rss feed
- Custom Post 404
- Problem with Apply Filters on URL in meta box filed of custom port type
- Custom taxonomy template shows 404 Error
- how to retain the ability to modify the post slug after applying a post_type_link filter?
- Post type Permalink
- How do I show a link or ‘Read More’ button on a custom field excerpt when it is less than the word limit
- Custom post type categories gives 404 error
- How to filter url on post submission?
- Direct form to a custom page template
- Modifying WP_Title For Custom Post Type
- Filtering the_content, but still need to display the unfiltered content inside filter
- wp-includes does not contain a feed template
- Change Custom Post Type singular_name through function/filter
- Modify a plugin function output from another plugin