WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Display Content in Page Feed - Not Comments! (3 posts)

  1. skipcollege
    Member
    Posted 6 years ago #

    It looks like WP recently changed what the Page (not post) feed displays in it from the page content to the page comments. I'm looking to reverse that to make our sites functional again.

    Really, I'm ideally looking to display the page content excerpt in the feed of only select pages on a case by case basis.

    However, if only a way to make all pages show their content in their feed is available, then I'll take it.

    The only relevant thing I could find after searching for quite a while is this but it doesn't seem to work with 2.3... http://www.wp-plugins-db.org/plugin/page-feed

    A hack, workaround, or plugin to get page feeds to display their content excerpt instead of comments is fine (ideally on a page by page basis).

    Need help! Thanks!

  2. skipcollege
    Member
    Posted 6 years ago #

    Hacked it myself. Here it is...

    In includes/feed-rss2-comments.php on line 49 I changed

    <?php comment_text(); ?>

    to

    <?php if (is_page('2')) the_excerpt(); else comment_text(); ?>

    Use is_single for posts if you wish.

  3. Sam_a
    Member
    Posted 6 years ago #

    I updated my plugin and it seems to work in WordPress 2.2; I haven't tested in 2.3.

    Fix page feed plugin for WordPress 2.1+

    I thought the bug was supposed to be fixed in 2.2 but I guess not.

Topic Closed

This topic has been closed to new replies.

About this Topic