Support

Home Forums Event Espresso Premium Order by date api

Order by date api

Posted: October 21, 2016 at 7:18 am

Viewing 2 reply threads


rsthrive

October 21, 2016 at 7:18 am

Hi,

I’ve tried to order the events without much luck using: http://localhost:8888/wp-json/ee/v4.8.36/events?calculate=image_large&include=Datetime&order_by%5BDTT_EVT_start%5D=ASC

I also wondered why none of the api urls in the documentation return 404 errors:
https://github.com/eventespresso/event-espresso-core/blob/master/docs/C–REST-API/ee4-rest-api-GET-filtering-results.md


Josh

  • Support Staff

October 21, 2016 at 10:00 am

Currently the docs point to a nonexistent demo site, so that’s why if you try the URLs there, they 404. Anyway, this the doc that you can refer to:

https://github.com/eventespresso/event-espresso-core/blob/master/docs/C–REST-API/ee4-rest-api-GET-including-specific-fields-and-related-entities-in-results.md

so for example an event list where you order by date time would look like this:

/wp-json/ee/v4.8.36/events?
include=Datetime.DTT_EVT_start&
order_by[Datetime.DTT_EVT_start]=DESC


rsthrive

October 24, 2016 at 7:15 am

Many thanks Josh, that’s perfect.

Viewing 2 reply threads

The support post ‘Order by date 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