List view orderby Date then Time then Venue

Home Forums Calendar Products Events Calendar PRO List view orderby Date then Time then Venue

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #74320
    ryanaskew
    Participant

    Hi,
    I’m trying to get the list view of events to display in a slightly different order. Currently my events are displayed in Date then Time order for these views in the plugin’s posts_orderby function. What I want to order by is Date then Time then Venue, so that if I have events at the same venue at the same time, they are displayed adjacent in the listing, instead of possibly having other events at the same time but different venue between multiple events at the same time at the same venue.

    This applies to day views and list view.

    Similar to what we might do with a WP_Query:
    $query = new WP_Query( array( ‘orderby’ => ‘date time venue’ ) );

    Any thoughts on how I can make this happen at the template level?

    #74431
    Barry
    Member

    Two possible avenues are filtering and adapting the query that is used to obtain this data – I’m not 100% sure how readily achievable this would be, but it’s something you could explore – and catching and pre-processing the events to re-order them at template level, or just above template level.

    Either really comes down to some general PHP/WP know-how and though it’s definitely an interesting idea we’d need to leave it to you to figure out the details here. Our Themer’s Guide and Technical Docs are worth perusing in advance of any work like this if you haven’t already done so.

    Thanks!

    #982186
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘List view orderby Date then Time then Venue’ is closed to new replies.