Support

Home Forums Event Espresso Premium EE_Event_List_Query not working

EE_Event_List_Query not working

Posted: June 6, 2017 at 1:53 am

Viewing 3 reply threads


Ken Toh

June 6, 2017 at 1:53 am

I am using this EE_Event_List_Query for generate the list of latest event.

This class does not seem to be working in the latest update. Has been deprecated?

I have also tried using EventListQuery, both states: Class Not Found.


Josh

  • Support Staff

June 6, 2017 at 7:33 am

Hi Ken,

Yes that’s been deprecated. You can use the model system instead:

https://github.com/eventespresso/event-espresso-core/blob/master/docs/G–Model-System/model-querying.md


Anthony

June 7, 2017 at 5:12 pm

The term “deprecated” normally means that a function or class is being phased out and is no longer recommended. In this case, the class has been removed altogether and no longer functions. Unfortunate, since I wrote a reporting add-on that heavily depends on that class and several others. I had to downgrade the plugin to buy me some time to re-write all of the functionality.


Josh

  • Support Staff

June 7, 2017 at 7:58 pm

Hi Anthony,

The functionality hasn’t been removed altogether because there’s a full replacement: EventListQuery(). You’ll find an example of the same functionality in the espresso_get_events() template tag. Here’s a link to that example:

https://github.com/eventespresso/event-espresso-core/blob/master/public/template_tags.php#L177

Viewing 3 reply threads

The support post ‘EE_Event_List_Query not working’ 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