WordPress.org

Forums

Reverse RSS (2 posts)

  1. wherl
    Member
    Posted 6 years ago #

    I'm using WP as a calendar. As you can see here
    http://www.actv.org/calendar

    I've got everything working but would like to reverse the order of the rss feed.
    Since I'm displaying future posts for a calendar the RSS lists the event listed
    the farthest out on the calendar. I would like to show have it list the 10 most recent events.

    I've search everywhere and have only found reverse order commands for comments and post.

  2. wherl
    Member
    Posted 6 years ago #

    Solved

    in the wp-includes folder edit the feed-rss2.php file...

    Add this code...
    <?php query_posts($query_string . "&order=ASC") ?>

    Above the
    <?php while( have_posts()) : the_post(); ?>
    line in this file.(around line 34)

    Save and replace. (using wp 2.7)

Topic Closed

This topic has been closed to new replies.

About this Topic