Support » Plugin: Events Manager » Custom order in Events RSS: order DESC doesn't work

  • Resolved mayuxi

    (@mayuxi)


    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!

    http://wordpress.org/extend/plugins/events-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • try orderby=”event_start_date” instead – http://wp-events-plugin.com/documentation/event-search-attributes/

    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.

    Plugin Author Marcus

    (@netweblogic)

    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

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom order in Events RSS: order DESC doesn't work’ is closed to new replies.