0

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.

3
  • 1
    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, 2012 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, 2012 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, 2012 at 0:26

2 Answers 2

0

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

added in the header.php.

This fulfilled my purpose.

0

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);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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