Support

Home Forums Event Espresso Premium Event list order sort

Event list order sort

Posted: September 19, 2012 at 12:33 am

Viewing 13 reply threads


Michael Watt

September 19, 2012 at 12:33 am

I’m still having issues with sorting my event list.
No matter which variation of shortcode I use, the most recent(active) event is not coming to the top of the list. In addition, the event widget is also sorting incorrectly (related issue?)

http://69.89.31.173/~icajapan/

I have tried:

[EVENT_LIST order_by=date(start_date) show_expired=true]
[EVENT_LIST order_by=date(end_date) show_expired=true]
[EVENT_LIST order_by=date(registration_start) show_expired=true]

Could you help me out with this please?
Would it help if I give you access to take a look?


Dean

September 19, 2012 at 2:26 am

Hi Michael,

This has been an issue, that is now resolved in the latest version (3.1.27). As per the changelog

adds new “sort” parameter to EVENT_LIST shortcode e.g. [EVENT_LIST
category_identifier=”test-cat-1″ show_recurrence=”true”
order_by=date(start_date),id sort=DESC]


Michael Watt

September 20, 2012 at 11:52 pm

Dean, sorry to be a bother but even with the new sort parameter the events are still being listed from oldest to newest.

<code>[EVENT_LIST show_expired=true order_by=date(start_date),id sort=DESC]</code>

If I gave you access, cold you take a look at it for me?


Dean

September 21, 2012 at 12:34 am

Sure, send them via https://eventespresso.com/contact/

Choose the “I am sending login info as requested” option and fill out the form


Chris Reynolds

  • Support Staff

September 24, 2012 at 3:05 pm

@Michael

The password you sent in the form isn’t working. Can you resend it?


Michael Watt

September 25, 2012 at 12:05 pm

Apologies, Chris. The password was re-sent.


Chris Reynolds

  • Support Staff

September 25, 2012 at 5:28 pm

I see that you’ve moved your event_list.php and event_list_display.php — can you try renaming those files or moving them out of the /wp-content/uploads/espresso/templates directory and see if the sort order works?

templates


Michael Watt

October 18, 2012 at 11:34 pm

It works Chris! Thanks for your patience.
I seem to have the same problem with the widget but I’ll open a separate ticket for that.

As reference to others who are reading this, I used the following code [EVENT_LIST show_expired=true order_by=date(start_date) sort=DESC]


Ginger

November 2, 2012 at 3:53 pm

Hi, I’m having the same issue here, but when I rename my event_list.php and event_list_display.php my template changes aren’t applied anymore.

If I move these files out of /wp-content/uploads/espresso/templates, where should I move them to keep my template changes?

I also tried Michael’s code, which is not working.


Ginger

November 2, 2012 at 4:09 pm

Sorry, I just thought about this now, but should I open a new ticket instead? 🙂 Do let me know!


Josh

  • Support Staff

November 2, 2012 at 4:31 pm

Hi Ginger,

If you made a few changes to the event_list_display.php and event_list.php templates, you can re-apply the changes to the new version of Event Espresso’s templates. Then copy these over to /wp-content/uploads/espresso/templates. We recommend using a tool like diffmerge to compare the files. It also helps to use a consistent comment block where you make changes, so you can find them quickly.


Ginger

November 2, 2012 at 4:49 pm

Hi Josh,

I don’t quite follow. I have the latest version of EE at the moment (3.1.27.1). And I have been editing the template files in /wp-content/uploads/espresso/templates.

When you say “re-apply the changes to the new version fo Event Espresso’s templates” do you mean editing the template files in /plugins/event-espresso/templates?

Thanks for the response!


Josh

  • Support Staff

November 2, 2012 at 5:12 pm

Hi Ginger,

You could do it that way. It might help to explain that Event Espresso looks for templates in /wp-content/uploads/espresso/templates first. If it doesn’t find them there, it looks in /plugins/event-espresso/templates.

So as an example, if you copied over the templates from version 3.1.26 into /wp-content/uploads/espresso/templates, and then you update to 3.1.27.1, your templates will be out of sync. The changes need to be synced somehow. One way to do this is by directly editing the template files in /plugins/event-espresso/templates, then copy them over to /wp-content/uploads/espresso/templates.

Another way to do this is compare the templates in the core plugin to what’s in /wp-content/uploads/espresso/templates, and copy over the updates from the core plugin templates to the templates in /wp-content/uploads/espresso/templates.


Ginger

November 2, 2012 at 5:16 pm

Oh I see. Got it. I was under the impression that the plugin looked at /plugins/event-espresso/templates BEFORE /wp-content/uploads/espresso/templates.

Works great now!

Count this issue double-resolved!

Thanks Josh!

Viewing 13 reply threads

The support post ‘Event list order sort’ 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