WordPress.org

Ready to get started?Download WordPress

Forums

Valid Feed, but may cause problems (6 posts)

  1. surfbits
    Member
    Posted 8 years ago #

    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

  2. petit
    Member
    Posted 8 years ago #

    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.

  3. surfbits
    Member
    Posted 8 years ago #

    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?

  4. petit
    Member
    Posted 8 years ago #

    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.

  5. surfbits
    Member
    Posted 8 years ago #

    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; ?>

  6. dje
    Member
    Posted 8 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic