Change comment URL at the end of each RSS feed post

I am wondering how to change the comment URL at the end of each RSS feed post. I am not using a plugin for this at this time.

Ie. currently the end of each blog post in the RSS feed contains a link to the first few comments but is using the url structure: http://mysite.com/blog-post-name/#comments
Id like to use an alternative stripped down version of my comments in the form of http://mysite.com/blog-post-name/feed/html.

How would I go about accomplishing this?

  • Rupok

    Hi Dirk, hope you had a wonderful day.

    I am wondering how to change the comment URL at the end of each RSS feed post

    Normally you can't change the comment URL because WordPress doesn't have any comment-page template through which it will show individual comments. Instead, WordPress shows comments in the post template with anchor URL to each comment.

    I don't know how you are planning to show your individual comments but if you want to change the URL structure for individual comments, you can do it by editing "/wp-includes/feed.php" file on line 290. To get full details of this function, you can check here: https://core.trac.wordpress.org/browser/tags/4.5.2/src/wp-includes/feed.php#L290

    However, editing core WordPress files are NOT SUGGESTED at all and its a very bad practice. What do you suggest?

    Have a nice day. Cheers!
    Rupok

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.