Support

Home Forums Event Espresso Premium Get events ordered by event date ee4

Get events ordered by event date ee4

Posted: April 9, 2018 at 2:24 pm

Viewing 1 reply thread


rohamsterdam

April 9, 2018 at 2:24 pm

Hi there,

I switched from ee3 to ee4. I had a loop in ee3 to automatically add the events by event date in a newsletter:

‘meta_key’ => ‘event_end_date’,
‘order’ => ‘ASC’,
‘orderby’ => ‘event_end_date’,

But I’ve read around the forum that the event date is not stored as a meta key anymore, so I need to condition it another way.

I can’t just use the DTT_EVT_start filter because the newsletter plugin will order it by publish date of the event, not the actual date of the event.

I hope you guys can help me with this,

Kind regards


Josh

  • Support Staff

April 11, 2018 at 3:24 pm

Hi there,

This gist shows one example of how to get events ordered by event date (in EE4)

https://gist.github.com/joshfeck/6e33532c37a123bbf532

Viewing 1 reply thread

The support post ‘Get events ordered by event date ee4’ 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