Support

Home Forums Event Espresso Premium Events in wrong order (by time)

Events in wrong order (by time)

Posted: July 8, 2013 at 2:36 pm

Viewing 3 reply threads


Rachael Richards

    July 8, 2013 at 2:36 pm

    Hi, we are using Event Espresso for booking some theatre events (performances). The performances are listed here http://www.clientdevelopment.co.uk/gaga/book-tickets/, but they aren’t showing in the correct order, e.g. please see http://screencast.com/t/7GtmtTqbQ. How can we order by time as well as date?

    Thanks in advance


    Rachael Richards

      July 8, 2013 at 4:20 pm

      BTW, we’re using espresso table shortcode there [ESPRESSO_TABLE]


      Dean

      • Support Staff

      July 9, 2013 at 6:14 am

      Hello Rachael,

      There really isnt an easy way of doing this. The time is actually not held int hat database, and is pulled in via a different function.

      It could be possible to pull that database table into the query but I had a hard time doing so. I’ll see if a developer can have a look and see if it is possible or not with the current way the shortcode is designed.


      Josh

        July 9, 2013 at 11:03 am

        Hi Rachael,

        There’s a way to add in the start times to the query so that it can order by date then time. Normally it only pulls in date.

        I posted a gist of a modified espresso_display_table function (link below). You can replace the espresso_table_function that is included in the espresso_table.php template with the one in the gist to add time ordering.

        https://gist.github.com/joshfeck/5959121

        Viewing 3 reply threads

        The support post ‘Events in wrong order (by time)’ 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 - Staging Server