Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
API : How do I get events sorted by start date from the api? | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium API : How do I get events sorted by start date from the api?

API : How do I get events sorted by start date from the api?

Posted: October 8, 2013 at 8:37 pm

Viewing 1 reply thread


Nicolas Alberto

October 8, 2013 at 8:37 pm

Hi,
It looks like the api does not return the event sorted by start date.

It there a way to get that. Makes it pretty hard currently to list events by start date which is quite natual way of doing it.

Thanks in advance
Nic


Dean

  • Support Staff

October 9, 2013 at 2:58 am

Hi Nicholas,

As you say the API doesnt provide a sorting function, just outputs the requested data. It is up to you to take that data and manipulate it as needed.

If you are using PHP, then I could suggest something along the lines of http://docs.php.net/manual/en/function.array-multisort.php

The API is still a work in progress and we may add further functionality for sorting in the future. I will at least mark this down as a feature request for you.

Viewing 1 reply thread

The support post ‘API : How do I get events sorted by start date from the api?’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso - Staging Server