Forums

RSS Feed In HTML (4 posts)

  1. SilverSiR
    Member
    Posted 4 years ago #

    I am very new to RSS and bloggin in general. What I wanted to do is instead of just having RSS feed text, I want it to display the full html and pictures. I know slashdot and engadget do this, just wondering how I can aswell.

  2. Kafkaesqui
    Moderator
    Posted 4 years ago #

    You'll have to modify your syndication files (wp-rss.php, wp-rss2.php, wp-atom.php and wp-rdf.php -- make backups of any you alter).

    Where they use one of these tags:

    <?php the_excerpt_rss(); ?>
    <?php the_content_rss(); ?>

    change it to:

    <?php the_content(); ?>

    Note: Many RSS readers will not correctly read straight html content and images, or will have a problem displaying it. You've been warned...

  3. hidden_premise
    Member
    Posted 4 years ago #

    Yah a lot of popular readers have trouble with this. If I were you I would have two versions of your rss feed. With the links to each one clearly stating one is html and one is just pure text

  4. mdawaffe
    Member
    Posted 4 years ago #

    @hidden_premise (or anyone with an answer)

    Not knowing anything about RSS myself, is the problem you mention solved by wrapping HTML content in CDATA tags as has been done in the nightlies since around the 10th of Jan?

    i.e.
    <![CDATA[<?php the_excerpt_rss() ?>]]>
    etc.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.