WordPress.org

Ready to get started?Download WordPress

Forums

Full Text RSS Does Not Work (WP 2.1.1) (19 posts)

  1. amglori
    Member
    Posted 7 years ago #

    Hoping someone can help.

    My site is: http://www.lifeinbeta.net
    My RSS feed is: http://www.lifeinbeta.net/wp-rss2.php

    As you can see, my RSS feed is only displaying a few lines of text. I want it do display FULL-text.

    I'm *not* using the !-- more -- tag (as you can see on the website), so it shouldn't cut off because of that.

    Under Options > Reading, I have it set to "Full-Text".

    I've tried setting it to "Summary" and publishing, then switching it back to "Full Text" and publishing again -- no luck on that.

    I also tried installing the Full Text Feed plugin (http://cavemonkey50.com/code/full-feed/) and that didn't help either.

    What am I missing? How can I make my feeds full text again?

  2. therealdrag0
    Member
    Posted 7 years ago #

    Word to this guys problem.

  3. Doodlebee
    Member
    Posted 7 years ago #

    What are you using to view your feeds?

  4. amglori
    Member
    Posted 7 years ago #

    What are you using to view your feeds?

    I'm using Google's feed reader (http://reader.google.com)

    But even if I open IE and type in the URL to my feed (http://www.lifeinbeta.net/wp-rss2.php) -- to view the XML, the <description> gets cut off after about 3 lines and just has an ellipsis to continue reading.

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    The description tag always uses the excerpt for some reason.

    Find this code in wp-rss2.php

    <?php if (get_option('rss_use_excerpt')) : ?>
    		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    <?php else : ?>
    		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>

    Change it to this:

    <?php if (get_option('rss_use_excerpt')) : ?>
    		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    <?php else : ?>
    		<description><![CDATA[<?php the_content_rss() ?>]]></description>

    I do not know why this option has been disabled in this way. I'll look into it in trac.

  6. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Huh. For some reason this was broken 3 years ago and nobody has bothered with it. I'll submit a patch for it later.

  7. Xander
    Member
    Posted 7 years ago #

    Mind-boggling.

  8. amglori
    Member
    Posted 7 years ago #

    Thanks, Otto42! That solved the problem of displaying the entire post!

    However, now the links in the post don't work quite right. Instead of displaying as hyperlinked text, they're referenced at the bottom of the post with numbers contained in brackets (example: http://www.lifeinbeta.net/wp-rss2.php) -- any ideas on fixing this?

    Thanks for the help so far!

  9. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Try using the_content() instead of the_content_rss(). I'm not sure that function has been updated in a while, so it's doing this odd summary thing.

    Clearly, some work needs to be done on this section of the codebase.

  10. amglori
    Member
    Posted 7 years ago #

    Thanks, Otto42. That seems to work!

  11. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Actually, on reflection, that code in wp-rss2.php is fine. The rss_use_excerpt option is basically controlling whether the content:encoded bit is output or not. Okay, it's an odd way of doing things, but it does work as far as it goes.

    I think that in order to fix this, somebody needs to work out what most readers use when presented with both a description and a content:encoded section. According to the documentation (such as it is), description should not be the full content, it should only be a small thing describing the content.

  12. Xander
    Member
    Posted 7 years ago #

    From what I know of common implementations some readers still use the description field expecting full entry.

    Currently I have modified my RSS2 feed to drop full content in both description and content:encoded... good/bad idea?

  13. Doodlebee
    Member
    Posted 7 years ago #

    Otto - thanks for the tip. I've been trying to figure this out, myself. I've found that some people actually get the full description to show up - but it's always some kind of fluke, and I can't find the common thread that makes it happen.

    Xander - if you could tell me how you did that, I would *so* appreciate it. i have several clients who look for this to happen, and (as I said) I can't figure out how the ones that *have* gotten it to work make it work. I'm giving a presentation on Podcasting and WordPress (PodPress) in a few weeks, and I'd love to add this to the thing I'm doing.

  14. glicence
    Member
    Posted 6 years ago #

    I couldn't make that work..

    the line you started with,

    <?php if (get_option('rss_use_excerpt')) : ?>
    starts
    <?php if (get_settings('rss_use_excerpt')) : ?>
    on my rss2.php file

  15. glicence
    Member
    Posted 6 years ago #

  16. john_nyc
    Member
    Posted 6 years ago #

    My Rss Feed:
    http://celebridiot.com/gossip/?feed=rss

    Keeps defaulting back to Summary instead of Full Text. Tried the above fix and also tried a full text plugin with no luck.

    Verison 2.2.1

    When I was running 1.x the full text feed was working fine. I do use the MORE tag, but i don't care if it cuts there I just want everything that is before that tag to appear.

    Any help is greatly appreciated!

  17. nabeelo
    Member
    Posted 6 years ago #

    argh... i'm twiddling with the same stuff here but no luck - I'm just randomly hacking away at PHP files at this point hoping to find something.

  18. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    The full text feed in WordPress does actually work correctly. The description tag is always a summary, the full text flag actually controls whether or not the content:encoded is output.

    It would be helpful to know what feedreader you are using. I tested some of the most common ones I could find back 5 months ago when working on this thread, and they all worked correctly. Google Reader handles the feed perfectly, for example, although it's hard to test because of the fact that Google caches feeds.

    A feedreader that displays only description and ignores content:encoded will not display the full text of the posts. Problem is that I can't find any that actually do that. Firefox's feed display will do that, but then it's not really a feedreader.

  19. fongandrew
    Member
    Posted 6 years ago #

    Referring to Otto's earlier fix, here is full code from wp-rss2.php (actually in wp-includes/feed-rss2.php for me)

    <?php if (get_option('rss_use_excerpt')) : ?>
    		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    <?php else : ?>
    		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    	<?php if ( strlen( $post->post_content ) > 0 ) : ?>
    		<content:encoded><![CDATA[<?php the_content() ?>]]></content:encoded>
    	<?php else : ?>
    		<content:encoded><![CDATA[<?php the_content() ?>]]></content:encoded>
    	<?php endif; ?>
    <?php endif; ?>

    As Otto just said, the description tag is always supposed to be a summary so that's not a problem. The content should be in content:encoded, which is written if get_option('rss_use_excerpt')) returns false. If you look at the actual feed source, for some reason, there's no content:encoded, indicating that get_option('rss_use_excerpt')) is returning true when it shouldn't.

    An easy fix, if you don't mind not having the option of using excerpts, is to simply get rid of the excerpt check.

    So just replace above code with this

    <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    	<?php if ( strlen( $post->post_content ) > 0 ) : ?>
    		<content:encoded><![CDATA[<?php the_content() ?>]]></content:encoded>
    	<?php else : ?>
    		<content:encoded><![CDATA[<?php the_content() ?>]]></content:encoded>
    	<?php endif; ?>

    `

Topic Closed

This topic has been closed to new replies.

About this Topic