Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author jp2112

    (@jp2112)

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

    Thread Starter Beee

    (@beee)

    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.

    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

    Thread Starter Beee

    (@beee)

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

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

    Plugin Author jp2112

    (@jp2112)

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

    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.

    Plugin Author jp2112

    (@jp2112)

    This will be available in the next version.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘option to reverse display order ?’ is closed to new replies.