Support » Plugin: Events Manager » RSS Feed – How can we change the date order?

  • Resolved cjc1867

    (@cjc1867)


    Hi
    I have got my 5 events showing in Ditty News Ticker with the RSS Add-on but it is displaying the dates of the events in the wrong order. I would like to display the first date of an event rather than the last date.

    I have looked at em-rss.php but can’t see where I can perhaps use Orderby or something similar…

    Not sure if this is Events Manager or Ditty News Ticker problem???

    Thanks

    Colin

    https://wordpress.org/plugins/events-manager/

Viewing 14 replies - 1 through 14 (of 14 total)
  • try Events > Settings > Formatting > RSS > Default event list ordering

    Hi Angelo
    I don’t have Default event list ordering

    Thanks

    Colin

    Hiya,

    How is Ditty getting the events? Does it get them from the RSS feed?

    Thanks,
    Phil

    Hi Phil
    Yes I am just entering the RSS feed for the Events.

    At the moment I am trying it out on localhost and have used http://localhost:51366/whats-on/rss, it works but I am getting the end of the month first and I want the beginning instead.

    Under Events Manager => Settings => Pages => Event Lists/Archives then scroll down to Default event list ordering

    I can change the order but it’s not giving me what I want.

    Thanks

    Colin

    caimin_nwl

    (@caimin_nwl)

    NetWebLogic Support

    It’s curious that you don’t see Events > Settings > Formatting > RSS > Default event list ordering – which version of Events Manager are you using?

    Hi
    I have Events Manager 5.5.2 installed and activated.

    Thanks for replying

    Colin

    Deactivated all Plugins except Events Manager and there is still no:

    Events > Settings > Formatting > RSS > Default event list ordering

    Changed the theme to Twenty Twelve and again still no Default event list ordering….

    Checked another website I have and again I still don’t have this Default event list ordering under the settings…

    Hi @cjc1867,

    Can I have your screenshot of your events RSS feed?

    Thanks,
    Ambhen

    can you provide a sample screenshot for your formatting options? also, is this using multisite?

    Hi
    No, not using Multisite.

    What’s the best way to add a screenshot?

    Thanks

    Colin

    Hi
    I have added the screenshots to my blog site:
    RSS Screenshots

    I hope this helps, fingers crossed

    thanks

    Colin

    hmm, I see now; however, this works for me even when EMPro is deactivated. can you try to deactivate or activate EM?

    Hi
    I have deactivated and re-activated EM and it is the same.

    I have downloaded, installed and activated the Dev version and I have got the Events > Settings > Formatting > RSS > Default event list ordering

    But I’m still getting the earliest date of an event at the bottom….

    Nearly there

    Colin

    Hi
    Solution 1: Developer of Ditty RSS Ticker sent some code to place in functions.php that reverses the Tick order.

    function my_custom_tick_order( $ticks, $id, $meta_data ) {
    if( $meta_data['_mtphr_dnt_type'] == 'rss' ) {
    return array_reverse( $ticks );
    }
    }
    add_filter( 'mtphr_dnt_tick_array', 'my_custom_tick_order', 11, 3 );

    This solutions corrects the Ticker but the RSS widget still shows it back to front.

    Solution 2: This post has the other solution.

    So it looks like SimplePie was the problem or that the default for displaying RSS feeds is displayed as showing the last event first as oppose to showing the first event first.

    The second solution fixes the ticker and the RSS widget.

    Thanks

    Colin

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘RSS Feed – How can we change the date order?’ is closed to new replies.