WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have disabled comments in my wordpress site. So comments/feed url is giving 404 error. So how should I resolve these errors? doaminname/feed works fine. But domainname/comments/feed is giving error. So I want to fix that error.

share|improve this question
You disabled comments and your feeds broke? I thought at first it was only your comments feed that didn't work but then you wrote "Other page name/feed is also giving 404 error" which implies that all of your feeds are broken. Can you clarify? – s_ha_dum Nov 6 '12 at 20:56
s_ha_dum I modified my question. I dont want solution for that other page. As It is already removed from the system. So it is giving 404 error. – Dena Nov 6 '12 at 23:40
I am having a very hard time breaking my feeds. I have been messing with comment settings and deleting comments for long enough to start wondering what you did. What did you do? – s_ha_dum Nov 7 '12 at 0:26
up vote 0 down vote accepted

I added remove_action( 'wp_head', 'feed_links', 2 ); in functions.php file. and

added in the header.php.

This fulfilled my purpose.

share|improve this answer

You also might want to remove another hook. I had a plugin that was using it for event comments.

remove_action('wp_head', 'feed_links_extra', 3);
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.