Support

Home Forums Event Espresso Premium How to choose order of events?

How to choose order of events?

Posted: January 8, 2014 at 8:10 am


tamara smith

January 8, 2014 at 8:10 am

Looking for info on how to choose the order in which my events display. By default they show in order of date. I’d like them to display by order of class name.


Nikki

  • Support Staff

January 8, 2014 at 11:48 am

Hello,

Yes this is possible. You will need to paste this short code [EVENT_LIST sort=ASC order_by=event_name] into a new page. The main Event Registration page can be removed from the menu but needs to remain active.
Here is a link to more documentation https://eventespresso.com/wiki/shortcodes-template-variables/

Thanks


tamara smith

January 9, 2014 at 7:44 am

Thanks Nikki That was helpful. Can I make it even a bit more complicated?

I’d like to list the classes by name on the same page that I have 2 different category lists going on. For example I am using the short codes:
[EVENT_ESPRESSO_CATEGORY event_category_id=”gymnastics”]
[EVENT_ESPRESSO_CATEGORY event_category_id=”swimming”]
to separate the different groupings of classes I am teaching. If I use the short code you provided to organize each of those lists by class name it just just posts all the alphabetized classes on top of my separated class lists. Is there a slightly different code I could use that would allow all of that to happen on one page?

In short, I’m going for 2 lists of classes on the same page, both organized by class name.


Josh

  • Support Staff

January 9, 2014 at 10:36 am

Hi Tamara,

[EVENT_LIST] will also let you specify a category, so you can use [EVENT_LIST] instead of [EVENT_ESPRESSO_CATEGORY]. The documentation that Nikki linked to includes the category parameters that work with [EVENT_LIST].


tamara smith

January 10, 2014 at 3:28 pm

“so you can use [EVENT_LIST] instead of [EVENT_ESPRESSO_CATEGORY]”

Ok Josh – So what would be the complete short code for that? Where would I use Event_List?

Again, I’m going for 2 lists of classes (or 2 categories) on the same page, each organized by class name.


Josh

  • Support Staff

January 10, 2014 at 4:22 pm

You’d replace:

[EVENT_ESPRESSO_CATEGORY event_category_id=”gymnastics”]
[EVENT_ESPRESSO_CATEGORY event_category_id=”swimming”]

with:

[EVENT_LIST event_category_id=”gymnastics”]
[EVENT_LIST event_category_id=”swimming”]


tamara smith

January 10, 2014 at 4:36 pm

Josh – When I use those short codes I get my categories in 2 different lists, which is great, but they are not organized by name. They are organized by date.

Is there a way to combine those short codes you just gave me with the one Nikki provided earlier that allowed me to sort the classes by name?

[EVENT_LIST sort=ASC order_by=event_name] + [EVENT_LIST event_category_id=”gymnastics”] ??


Josh

  • Support Staff

January 10, 2014 at 5:28 pm

sure:

[EVENT_LIST sort=ASC order_by=event_name event_category_id=”gymnastics”]


tamara smith

January 11, 2014 at 7:35 am

Hurray! That works perfectly. Thank you so much everyone!
-Tamara

The support post ‘How to choose order of events?’ 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