In a custom post type I have set
false. In the head of a CPT page however I still find a link to a feed like this:
<link … title="Page Title | Comments Feed" href="domain/cpt/slug/feed/" />
The feed doesn't exist – the link generates a 404 error. I tried to remove the link with the filter
feed_links_show_comments_feed which only had an effect on the regular posts' comment feed:
add_filter( 'feed_links_show_comments_feed', '__return_false' );
…the cpt comment feed was still there.
I also tried to rmove all feeds – which again worked on all feeds but the one I wanted to remove:
remove_action( 'wp_head', 'feed_links', 2 );
If I however would set
true the link would actually lead to a valid rss feed of comments – which I basically wouldn't mind. But I can not have
has_archive set to
true since I need the base slug for some custom page and I don't want an archives page to appear on the slug's url.
I hope somebody can point me in the right direction? All pointers welcome. Thank you!