Title: WP 2.7 Comments: feed code error
Last modified: August 19, 2016

---

# WP 2.7 Comments: feed code error

 *  Resolved [chris-stetson](https://wordpress.org/support/users/chris-stetson/)
 * (@chris-stetson)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/wp-27-comments-feed-code-error/)
 * .)’
 * When clicked on, the user sees the following:
 * Internet Explorer cannot display this feed
 *  This feed contains code errors.
    Go back to the previous page.
 *  More information
 * A semi colon character was expected.
    Line: 18 Character: 46
 *  <link>[http://www.opinionpath.com/?p=3&cpage=1#comment-4</link&gt](http://www.opinionpath.com/?p=3&cpage=1#comment-4</link&gt);
 * The domain is [http://www.opinionpath.com](http://www.opinionpath.com).
 * The “Entries (RSS)” code works fine.
 * Suggestions

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [chris-stetson](https://wordpress.org/support/users/chris-stetson/)
 * (@chris-stetson)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/wp-27-comments-feed-code-error/#post-937655)
 * After I deleted the default comment that came with the default template, the 
   problem went away.
 *  [gfyd](https://wordpress.org/support/users/gfyd/)
 * (@gfyd)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/wp-27-comments-feed-code-error/#post-938096)
 * How’d you do that? I am having the same problem. Please let me know.
 * Thanks.
    Kimberly
 *  [utele](https://wordpress.org/support/users/utele/)
 * (@utele)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/wp-27-comments-feed-code-error/#post-938102)
 * I don’t know if it’s the same problem for everyone, but in my case I found a 
   solution:
 * It was a problem with quote-comments. The older version 1.1 which I reactived
   now is working fine, but the new version 1.2 does something which stops the comment
   feed working.
 *  [gfyd](https://wordpress.org/support/users/gfyd/)
 * (@gfyd)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/wp-27-comments-feed-code-error/#post-938104)
 * I don’t have any quote comments. Anybody else have any idea why the comments 
   rss feed doesn’t work?
 * [http://blog.go-for-your-dream.com/](http://blog.go-for-your-dream.com/)
 * I would appreciate any help.
 * Thanks.
    Kimberly
 *  [Roger Soucy](https://wordpress.org/support/users/bardicstorm/)
 * (@bardicstorm)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/wp-27-comments-feed-code-error/#post-938114)
 * I too had this same problem. The issue arises from the ampersand in the link (&
   cpage=1) not being a proper entity reference. The & should be &amp; .
 * I fixed the issue by adding the following code to functions.php:
    `$ret = preg_replace('#&#','&
   amp;', $ret );`
 * That line should be added directly after the following code (line 1213 in my 
   functions.php):
    `$ret = preg_replace( '#=(&|$)#', '$1', $ret );`
 * The causes the & to be replaced with it’s entity reference &amp; and thus your
   comments feeds should render properly. Mine did.
 *  [cliveg](https://wordpress.org/support/users/cliveg/)
 * (@cliveg)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wp-27-comments-feed-code-error/#post-938116)
 * As stated by bardicstorm, the error results from the ampersands in the link element
   not being escaped properly.
 * Although bardicstorm’s solution works, I prefer an alternative which I explained
   [in my blog entry on the subject](http://www.clive-publishing.com/2009/01/wordpress-27-rss-comments-link-error/)
   last week.
 * I understand that this fix will be included in the next release of WordPress.
 * The problem does not arise if you use one of the alternative formats for ‘permalinks’
   that does not use ampersands.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘WP 2.7 Comments: feed code error’ is closed to new replies.

## Tags

 * [comments feed](https://wordpress.org/support/topic-tag/comments-feed/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 5 participants
 * Last reply from: [cliveg](https://wordpress.org/support/users/cliveg/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/wp-27-comments-feed-code-error/#post-938116)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
