Posted: 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] |
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? |
|
|
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 |
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. |
|
|
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?) |
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)? — |
|
|
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. |
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. — |
|
|
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? |
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. |
|
|
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?!?!? |
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.