Events Manager
[resolved] Custom order in Events RSS: order DESC doesn't work (5 posts)

  1. mayuxi
    Posted 3 years ago #

    First of all, thanks for great plugin. I'm planning to go PRO in few month. But now I'm just testing it around and using great & free functionality.

    I've made custom RSS template in my theme-folder /plugins/events-manager/templates/rss.php My task to show latest added events in RSS by creation date, because for my users it's better to see what's new.

    So I customize query like this:

    $EM_Events = EM_Events::get( array('scope'=>'all', 'owner'=>false, 'orderby' => 'event_date_created', 'order' => 'DESC' ) );

    orderby => event_date_created is working, but order => DESC isn't. It's always showing older to newer in RSS no matter how is it DESC or ASC.

    How can I fix this? Thanks!


  2. agelonwl
    Posted 3 years ago #

  3. mayuxi
    Posted 3 years ago #

    Thanks, but it's not what I want.

    event_start_date is default state, and events sorts out according to the their start date. But I want to sort them out by *creation* date (only in RSS).

    So on the website I show event in default mode (by event_start_date): to show what's coming soon. And in RSS I show what's new.

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    our search query doesn't access the publish date at the moment, so it can't sort it using that field.

    instead of /rss/ at the end of your link, try /feed/

    WP created the feed at that point and I believe it's done ordered by creation date

  5. mayuxi
    Posted 3 years ago #

    Sorry, but I was using /feed/ already, and /rss/ no difference for me... OK, will back to original logic of the plugin, at least it worked in translation (rss to twitter and etc.). So I mark this topic as solved.

    Thanks for the help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic