Title: [Plugin: Disqus Comment System] RSS Feed validation error
Last modified: August 19, 2016

---

# [Plugin: Disqus Comment System] RSS Feed validation error

 *  [jyee](https://wordpress.org/support/users/jyee/)
 * (@jyee)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-disqus-comment-system-rss-feed-validation-error/)
 * After installing Disqus 2.60 (and possibly earlier and later versions), your 
   site’s RSS feed will not be valid (e.g. try [http://feedvalidator.org](http://feedvalidator.org))
   and will generate an error about <slash:comments> or “Undefined slash_comments
   element: span”
 * The problem is that dsq_comments_number() in the disqus.php file modifies the
   count to include the html <span> element. Strict RSS rules state that slash:comments
   only contains a non-negative integer… so the inclusion of html causes an error.
 * To resolve the issue, you need to change
    `if ( dsq_can_replace() ) {` to `if(
   dsq_can_replace() && !is_feed() ) {` in the dsq_comments_number() function at
   around line 694 in disqus.php

The topic ‘[Plugin: Disqus Comment System] RSS Feed validation error’ is closed 
to new replies.

 * ![](https://ps.w.org/disqus-comment-system/assets/icon.svg?rev=1636350)
 * [Disqus Comment System](https://wordpress.org/plugins/disqus-comment-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/disqus-comment-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/disqus-comment-system/)
 * [Active Topics](https://wordpress.org/support/plugin/disqus-comment-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/disqus-comment-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/disqus-comment-system/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jyee](https://wordpress.org/support/users/jyee/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-disqus-comment-system-rss-feed-validation-error/)
 * Status: not resolved