Support

Home Forums Event Espresso Premium Events showing out of order

Events showing out of order

Posted: September 8, 2015 at 4:12 pm

Viewing 10 reply threads


Laurita Winery

September 8, 2015 at 4:12 pm

Can you help me figure out why this event is showing out of order? We’re using the following shortcode to populate a widget:

[ESPRESSO_EVENTS]

http://grab.by/KfTq


Tony

  • Support Staff

September 9, 2015 at 4:44 am

Hi Jason,

It looks like you are using a custom template for the ESPRESSO_EVENTS shortcode, is it still using sort_by start date and ASC?

Does the event you have highlighted have a single datetime?

Could you post up a screenshot of the datetime/ticket editor for that event?


Laurita Winery

September 10, 2015 at 2:56 pm

Where would I find that custom template? I can’t remember and I’m not seeing anything obvious.

As for your question/request.. here you go: http://grab.by/KkcG


Tony

  • Support Staff

September 11, 2015 at 3:57 am

Where would I find that custom template? I can’t remember and I’m not seeing anything obvious.

Do you have anything within wp-content/uploads/espresso/templates/

Or any template files beginning ‘espresso_events’ within your themes directory? /wp-content/themes/{theme_name}/

This could be archive-espresso_events.php for example.


Laurita Winery

September 11, 2015 at 12:31 pm

wp-content/uploads/espresso/templates/ is empty: http://grab.by/KlSM

/wp-content/themes/{theme_name}/ contents: http://grab.by/KlT6

archive-espresso_events.php has nothing in it but 404: http://grab.by/KlTo (that definitely seems weird… should I just remove this file altogether?)


Lorenzo Orlando Caum

  • Support Staff

September 11, 2015 at 1:07 pm

Hi Jason, would that event in your screenshot that has the red border happen to have multiple datetimes?

Or is there a single datetime for September 10th (http://cl.ly/image/0v2d3y40470k)?


Lorenzo


Laurita Winery

September 11, 2015 at 1:14 pm

Here’s a screenshot of the datetimes for the event that I highlighted in red: http://grab.by/KkcG

As you’ll see, this event happens a few times throughout this month and next.


Lorenzo Orlando Caum

  • Support Staff

September 11, 2015 at 1:20 pm

Hi,

I think what is happening is that since this event has multiple date times, then it is being shifted down as old datetime pass.

Was custom code written to present the events in that styling? If so, it may be pulling the first available datetime like described above.


Lorenzo


Laurita Winery

September 11, 2015 at 1:22 pm

That’s just it… I don’t know where that wouldn’t been done. This theme uses some kind of builder that allows me to choose the layout, and I chose to place HTML code in the left column. All I have in there is the shortcode. So if the shortcode isn’t being altered, then how could this be happening?


Josh

  • Support Staff

September 14, 2015 at 9:35 am

The theme might be altering the query. Especially so if there’s a function in the functions.php file that’s set up to change the order_by of WordPress posts. I can also recommend removing the archive-espresso_events.php file from your theme if it’s empty, that could potentially mess up the main event list archive.


Laurita Winery

September 16, 2015 at 11:03 am

So how about this… I just removed the shortcode, saved, added the shortcode back in, refreshed… and now they’re all in order.

WTF?!?!?

Viewing 10 reply threads

The support post ‘Events showing out of 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