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
- Media library – Limit images to custom post type
- Custom Post Types 404 Issue
- Custom sortable columns ordered by meta-value?
- Filter for “get_post_type_archive_link()”
- How to disable a Custom Post Type Feed?
- Custom Post Type Works but Still Shows “Page Not Found”
- WordPress custom post type category pagination 404 Error
- WordPress monthly archive links result in 404
- How to change the quantity of feeds in custom post type?
- Highlight nav menu terms
- Want to filter only parent post in admin area
- Filters post in admin with dropdown select, custom post type
- Admin List Dynamic Heading
- Create second custom 404 page for selected post type
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- Sub-Sub-Blogs — creating and importing content into a custom sub-type
- Add html to cpt main page / admin edit.php
- register_taxonomy and register_post_type does not work [closed]
- Custom Post Type + 20k posts = blank/404 within Admin edit.php [duplicate]
- Why is conditionally loading a custom plugin’s code only on a specific custom post type causing the site content to disappear?
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- Wrong request query on cpt and tax
- How to Filter custom post type by taxonomy?
- A method for ordering mixed dates in search result loop (theory only, no actual code)
- 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
- Versioned Custom Post Type (Not the same as revisions)
- the_content filter on some post types only not working
- Custom filter function not working with Custom post type
- Filter Posts from the Main Query
- Top Level pages in wordpress giving 404, but child pages working fine
- Custom post type single page (single-{CPT-name}) 404 when slug includes hyphens
- wordpress remove views from action links in a custom post
- 404 Error on form submission within custom post type
- Custom taxonomy page returns 404
- 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 to add filter in custom rss feed
- Problem with Apply Filters on URL in meta box filed of custom port type
- Post type Permalink
- Custom post type categories gives 404 error
- Direct form to a custom page template
- Change Custom Post Type singular_name through function/filter
- Permalink Trouble with custom post types
- show most viewed posts of last days by link?
- Problem with custom loop navigation inside the blog page
- Display custom post front end filter by ACF equals current user
- Best way to fix bad count on All | Mine | Published
- Can’t Export Custom Post Types With Export Tool In A Custom Theme
- Filter in Custom post type to find the parent post
- Sudden 404 pages on product category archives
- Custom post shows 404 after theme change
- Add content to wordpress edit.php page
- How to use multiple orderby conditions on query search results? (orderby one post type, relevance)
- pricefilter without WooCommerce
- filter rest api post by a acf filed
- Custom Post Type slug and WPML gets 404 error
- Making permalink for custom post type/custom taxonomy. Stuck with 404 in the single post
- pre_get_posts gives 404 error on Custom Post
- WP gives 404 error for custom post type with GET variable
- What am I doing wrong with my taxonomy?
- Grouping and paging CPT events by month with custom field date
- Highlight a Post on archive page if it has a new comment?
- Cannot use pages created on WP
- Custom post type with Filter and Page Nav
- Converting a checkbox filter for custom fields to a dropdown
- CPT unsaved draft gives error 404 – when Post Formats support enabled
- Filter RSS feed for custom post type to events for next 7 days only
- Exclude Custom Post Type from shared Custom Taxonomy
- Get link for feed of specific post type AND taxonomy
- Diffrent search templates for different post types
- How to filter posts by categories?
- How do I paginate a custom post type listing on a custom template page?
- How would you feed Custom Post Types to Facebook?
- How do I filter a custom post type loop by a field?
- A to Z list for custom post types
- Trying to set up a range filter for related custom post types
- Replace category titles inside RSS feed
- When Attempting to Filter Plugin Generated Content Using Filter post_type_link, Permalinks Are Not Modified
- display posts, pages and custom post types from another wordpress site
- Change CPT Edit Target Link for Admin List
- Add Custom Taxonomy Terms as CSS Classes for CPT Posts in an Elementor Loop Item Template