WordPress.org

Support

Support » How-To and Troubleshooting » Valid Feed, but may cause problems

Valid Feed, but may cause problems

  • I just started receiving this warning message from Feed Validator about my WP 1.52 Podcasting only blog, http://www.macreviewcast.com. The feed is http://www.macreviewcast.com/wp-rss2.php?category_name=podcasts

    The warning message is: This feed is valid, but may cause problems for some users. We recommend fixing these problems.
    line 52, column 12: Avoid <content:encoded> (10 occurrences)

    I did not change my wp-rss2.php file at all and this was valid before. Although it’s still valid, I heard from two listeners that told me they were having trouble with my feed… any ideas?
    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • There’s lots of fuss going on in the RSS arena.
    Rather than being Really Simple Syndication, the RSS 1.0 is interpreted RDF Site Summary

    The Content Module has a content:encoded element, defined as
    “An element whose contents are the entity-encoded or CDATA-escaped version of the content of the item.”
    See http://web.resource.org/rss/1.0/modules/content/

    The problem is that not all feed readers can coop with this element. Modern readers should though.
    I use the Sage feed reader plugin for Firefox, and it uses your feed without a problem.

    Thank you for your response.
    So is there anything I can change in the wp-rss2.php file to keep from getting this warning, or do we just live with it until validators like feedvalidator.org can handle it?

    WordPress comes with an assortment of feed formats, all produced by the bloginfo() template tag:
    http://codex.wordpress.org/WordPress_Feeds.
    You can use the simpler RSS 0.92 or the Atom feed.

    I finally removed these lines from my 1.52 WP wp-rss2.php file and I no longer receive the error messages when trying to validate in feedvalidator.org.. now my problem is waiting to see if I broke anything in my enclosures. :-/

    <content:encoded><![CDATA[<?php the_content(”, 0, ”) ?>]]></content:encoded>
    <?php else : ?>
    <content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
    <?php endif; ?>

    Instead of messing about with changing the templates, you can set wordpress to just send summaries, which do not have content:encoded tags, and validate correctly as per;

    http://wordpress.org/support/topic/65984#post-366201

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Valid Feed, but may cause problems’ is closed to new replies.
Skip to toolbar