Support

Home Forums Event Espresso Premium E4.4.4 events not in order

E4.4.4 events not in order

Posted: November 10, 2014 at 6:40 pm


Ryan DeBell

November 10, 2014 at 6:40 pm

Hello,

I just updated to ee4.4.4 and migrated my core data from an earlier version of ee4 and now on my event listing pages the events are no longer listed in chronological order. Where would you guys suggest looking to solve this?

Thanks!


Lorenzo Orlando Caum

  • Support Staff

November 10, 2014 at 7:35 pm

Hi Ryan,

They should be in reverse chronological order. That is, newer events should appear first with older events appearing afterwards.


Lorenzo


Ryan DeBell

November 10, 2014 at 7:54 pm

Hey Lorenzo,

That doesn’t appear to be the case. You can see what I mean on my events page: http://themovementfix.com/workshops/


Lorenzo Orlando Caum

  • Support Staff

November 10, 2014 at 8:40 pm

Hi Ryan,

What do the registration start dates for these events look like — for example, the first two?


Lorenzo


Ryan DeBell

November 10, 2014 at 8:57 pm

Lorenzo,

I have changed all ticket sales dates and event creation dates to be in the order I would like them to appear and it had no effect.

How would I go back getting them to be a list in order from nearest event to furthest event from the current date? This worked seamlessly on my ee4.2.7 before I updated to 4.4.4


Ryan DeBell

November 10, 2014 at 9:14 pm

Lorenzo,

I did some digging and it appears the events are being arranged by their ID number the system gives them, which is in order of creation.

How can I go about getting these to be arranged by event date rather than event ID?


Scott Stephanoff

November 10, 2014 at 10:10 pm

We were having a similar issue. It still isn’t displaying the events in the desired order in the backend, but it did end up displaying it how we wanted on the front end, after I deleted the two tickets that I wanted at the top of the list.


Josh

  • Support Staff

November 11, 2014 at 9:12 am

I can suggest checking to see if the order changes with using another theme. You can run a quick admin-only test by installing the theme test drive plugin.

EE4.4.4 and its earlier versions all order the events by next upcoming datetime, but it does this by adding some SQL to the WordPress posts_orderby filter. If another plugin or a theme function overrides this, or if the function that loads the filter loads too late, WordPress could potentially order them by something like the posted on date.


Ryan DeBell

November 11, 2014 at 11:02 am

I was using a previous version of ee4 on my current website with current theme and it was organized just fine. My web guy had to add in some code to make it work correctly but now that I have upgraded, it seems to have reverted back to ordering them incorrectly based on creation date.


Josh

  • Support Staff

November 11, 2014 at 2:24 pm

Hi Ryan,

It would be good to know what the web guy added. The code that orders the events hasn’t changed as far as I know, but again, if something is interfering with the posts_orderby filter that EE4 adds the events could end up being ordered by publish date.

Checking with another theme will help narrow down what’s causing this issue for you.


Ryan DeBell

November 11, 2014 at 5:23 pm

the thread is here: https://eventespresso.com/topic/wp-query-ordering-events-by-their-date/

I just don’t know where that line of code was added to make it work correctly


Dean

November 12, 2014 at 3:43 am

Hi,

The code linked should have been added to a page template, in the theme. This template would then be selected when adding or editing a page (under the Page Attributes > Template section in any page editor screen). Screenshot of the Page Attributes box http://take.ms/zGxfE

The support post ‘E4.4.4 events not in order’ 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