WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] RSS Feed - How can we change the date order? (15 posts)

  1. cjc1867
    Member
    Posted 2 months ago #

    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/

  2. angelo
    NetWebLogic Support
    Posted 2 months ago #

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

  3. cjc1867
    Member
    Posted 2 months ago #

    Hi Angelo
    I don't have Default event list ordering

    Thanks

    Colin

  4. philipjohn
    Member
    Posted 2 months ago #

    Hiya,

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

    Thanks,
    Phil

  5. cjc1867
    Member
    Posted 2 months ago #

    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

  6. caimin_nwl
    NetWebLogic Support
    Posted 2 months ago #

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

  7. cjc1867
    Member
    Posted 2 months ago #

    Hi
    I have Events Manager 5.5.2 installed and activated.

    Thanks for replying

    Colin

  8. cjc1867
    Member
    Posted 2 months ago #

    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...

  9. Ambhen
    Member
    Posted 2 months ago #

    Hi @cjc1867,

    Can I have your screenshot of your events RSS feed?

    Thanks,
    Ambhen

  10. angelo
    NetWebLogic Support
    Posted 2 months ago #

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

  11. cjc1867
    Member
    Posted 2 months ago #

    Hi
    No, not using Multisite.

    What's the best way to add a screenshot?

    Thanks

    Colin

  12. cjc1867
    Member
    Posted 2 months ago #

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

    I hope this helps, fingers crossed

    thanks

    Colin

  13. angelo
    NetWebLogic Support
    Posted 2 months ago #

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

  14. cjc1867
    Member
    Posted 2 months ago #

    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

  15. cjc1867
    Member
    Posted 2 months ago #

    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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.