Support

Home Forums Event Espresso Premium How to Manipulate Order of Events

How to Manipulate Order of Events

Posted: February 13, 2013 at 9:40 am

Viewing 8 reply threads


bblessings

February 13, 2013 at 9:40 am

We’ve created a page where we list all the public events we’re offering (using the shortcode below) & Event Espresso very nicely adds the “Register” link for each one.

[EVENT_ESPRESSO_CATEGORY event_category_id=”event-public-1354057023″]

QUESTION: How can we “order” the events on this page? Specifically, we have three events that we’d like to order like this:
Event A (dates May 31-Jun 1)
Event B (date May 31)
Event C (date Jun 1)

The way it’s showing up now . . . the Event B is showing up before Event A. I think that’s happening because Event A begins on the same date as Event B HOWEVER it ends on the next day.

Help?


Josh

  • Support Staff

February 13, 2013 at 2:11 pm

Hi there,

You can try:

[EVENT_LIST category_identifier=your_category_identifier order_by=date(start_date),id]

If Event B has a higher number ID, that should make event A list first, even though they have the same start date.


bblessings

February 16, 2013 at 11:43 am

I’m not quite getting how to do this and could use more help. Two things specifically:

(1) how to change the ID number for the event. If I knew how to change the ID number, I think I could manipulate the order.

(2) specifics on the short-code — I replaced what I had by adding to it as per your instructions . . . but when I did, the whole group of workshops disappeared from the actual page. So I put it back the way it was. Here’s what I had first:

[EVENT_ESPRESSO_CATEGORY event_category_id=”event-public-1354057023″]

then I replaced that one with this:

[EVENT_ESPRESSO_CATEGORY event_category_id=”event-public-1354057023″_identifier order_by=date(start_date),id]


bblessings

February 16, 2013 at 11:46 am

Would it help to see the page?
http://brendacarterblessings.com/public-events-registration/

Under the sub-heading “Talks and Workshops,” we want “The Heart of Awakening (Both Fri & Sat)” to show up first, before the “Evening Lecture…”


Josh

  • Support Staff

February 18, 2013 at 7:57 am

Hi there,

It would be:

[EVENT_LIST category_identifier=”event-public-1354057023″ order_by=date(start_date),id]

Please note that this is a different shortcode: EVENT_LIST, with a different parameter: category_identifier.


bblessings

February 24, 2013 at 7:38 am

Thank you for pointing out the different shortcode. I’ve replaced the shortcode and the list does show up now but is still not in the order I want it.

Referring back to my (1) above . . . maybe if I knew how to manipulate the “id” this Event List shortcode would work better.

I need the events to show up in this order:

1st, BOTH Fri & Sat
2nd, Fri Evening Only
3rd, Sat Only

the “id” for the event for BOTH FRI & SAT is 35:
http://brendacarterblessings.com/wp-admin/admin.php?page=events&action=edit&event_id=35

The “id” for the Fri EVENING only event is 31:
http://brendacarterblessings.com/wp-admin/admin.php?page=events&action=edit&event_id=31

The “id” for the Saturday only event is 34:
http://brendacarterblessings.com/wp-admin/admin.php?page=events&action=edit&event_id=34


Josh

  • Support Staff

February 25, 2013 at 9:56 am

Hi there,

When you add an event to the system, it increases the ID by one. So in this case, you could add the events into the system in the order that you’d like them to display on the list.


bblessings

March 8, 2013 at 9:58 pm

Thank you, Josh. It would still be nice to be able to edit, adjust, manipulate the ID in those cases where “the client” provides the events out-of-order. I might need to figure out a work-around for this.


Dean

March 11, 2013 at 4:04 am

Hi,

One way to do it, though this is a bit of a manual hack, is to use categories and multiple [EVENT_LIST] shortcodes. So you would have 3 categories: FRI, SAT, FRISAT and give the category to the appropriate events.

Then on your page have

[EVENT_LIST category_identifier=”FRISAT-1354057023″]
[EVENT_LIST category_identifier=”FRI-1354057023″]
[EVENT_LIST category_identifier=”SAT-1354057023″]

The downside to this is it will take a lot of manual work to maintain.

Viewing 8 reply threads

The support post ‘How to Manipulate 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