• After installing Disqus 2.60 (and possibly earlier and later versions), your site’s RSS feed will not be valid (e.g. try https://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.