Support

Home Forums Event Espresso Premium How to Order Events on Event Page

How to Order Events on Event Page

Posted: July 11, 2013 at 12:58 pm


evan hatch

July 11, 2013 at 12:58 pm

Is there a fairly easy way to change the order of how events are listed? What is the default sorting method? I have a number of events that all take place on the same dates and I would like to be able to sort them as I choose. I read a little via the support forms but wasn’t entirely satisfied/understanding of the options. Will future versions incorporate the ability to assign an order to how events are listed?


Josh

  • Support Staff

July 11, 2013 at 1:17 pm

Hi Evan,

This is possible with the current version by means of using a shortcode parameter.

How would you like to sort the events?

Are you looking to do something different that what the shortcode parameter offers?


evan hatch

July 11, 2013 at 2:50 pm

I am not overly experienced with shortcodes, could you explain by providing an example assuming three events.

The order I want to assign is not date related, time related or alpha related. I would just like to sort based on the way I think they should be listed. Doesn’t make a lot of sense I am sure but it does to me 😉


evan hatch

July 11, 2013 at 2:51 pm

Do I just modify the shortcode in the event to the number I want it to be in relation to the numbers of there other events? If so that is very easy and very satisfactory.


Josh

  • Support Staff

July 11, 2013 at 3:13 pm

The shortcode in the event will not alter the order they display in the list, but you can use [EVENT_LIST order_by=id sort=ASC] and enter the events into the system in the same order that you’d like them appear.

So the first event you enter into the system will appear first, the second event second, etc.


evan hatch

July 11, 2013 at 3:16 pm

This is the only way? What happens if I add an event a day or two later but want it listed 3rd of the 8 events? Does that mean I have to redo every event other than the first two in order to get it to list properly?


Josh

  • Support Staff

July 11, 2013 at 3:39 pm

Hi Evan,

It’s one way I can think of to order the events in “the way you think they should be listed”. Another way would be to categorize the events and order them by category_id. So to take the example of 8 events, you could make 8 categories. The first event could be assigned to the first category and so one.

Another way would be to not use a shortcode at all, but make a page and type out the names of events that you want displayed in the order you think they should be listed, and attach a link to each of them. You can even use the [ESPRESSO_CART_LINK] shortcode to make it so the events can be added to the cart.


Josh

  • Support Staff

July 11, 2013 at 3:42 pm

And another option: You could use the “Create a post feature”, which will create a post for each event, then use a plugin like Post types order to order them with a drag and drop option:

http://wordpress.org/plugins/post-types-order/


evan hatch

July 11, 2013 at 3:58 pm

The category one will work, thanks for problem solving my unique desire.


evan hatch

July 15, 2013 at 4:04 pm

When you create the categories and assign them how do you get the events to sort properly? You mentioned to use this code

[EVENT_LIST order_by=id sort=ASC]

Where do I put this code?


Josh

  • Support Staff

July 15, 2013 at 8:50 pm

It would actually be:

[EVENT_LIST order_by=category_id sort=ASC]

since you’ll by ordering by category.

You can place the above shortcode on a new page on your WordPress website.

The support post ‘How to Order Events on Event Page’ 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