WordPress.org

Ready to get started?Download WordPress

Forums

JP's Get RSS Feed
[resolved] option to reverse display order ? (9 posts)

  1. Beee
    Member
    Posted 1 year ago #

    I'm looking for an rss parser which displays posts by oldest first.
    Can your plugin do that ?

    http://wordpress.org/extend/plugins/jps-get-rss-feed/

  2. jp2112
    Member
    Plugin Author

    Posted 1 year ago #

    Right now it only pulls the latest X posts from a given feed. Let me look into this and see what I can do.

  3. Beee
    Member
    Posted 1 year ago #

    yeah, all parsers do that but I'm trying to list a feed with event items which have eventdate as pubdate, so oldest needs to show first.

  4. Mohney20
    Member
    Posted 1 year ago #

    I had the same problem when I used Super RSS Reader on a project a few weeks ago, I found this thread extremely helpful.

    http://wordpress.org/support/topic/rss-widget-shows-posts-in-reverse-order?replies=4

  5. Beee
    Member
    Posted 1 year ago #

    I used http://www.allenweiss.com/wp_plugin which has that option to reverse the order.

  6. Mohney20
    Member
    Posted 1 year ago #

    sweet thanks, that sound like a much better option than messing about in the core files of wordpress.

  7. jp2112
    Member
    Plugin Author

    Posted 1 year ago #

    For the record, this is on my feature list for a future release.

  8. idstm
    Member
    Posted 9 months ago #

    to overcome this i updated the plugin like so...

    following jp2112's pattern of deriving short codes form constants (none of which really needs to exist) i just added at line 213:

    $temp_sortorder = constant('JPGRF_DEFAULT_SORTORDER_NAME');
    $sortorder = $$temp_sortorder;

    then right after this line:
    $rss_items = $rss->get_items(0, $maxitems);

    i added:
    if($sortorder == 'oldestfirst' ) { $rss_items = array_reverse($rss_items); }

    by default get_items() is arranging the items by 'newestfirst'. so i just had the code reverse if the shortcodes asks for it to be.

  9. jp2112
    Member
    Plugin Author

    Posted 4 months ago #

    This will be available in the next version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags