Re-ordering Events That Start At The Same Time On Same Day?

Home Forums Calendar Products Events Calendar PRO Re-ordering Events That Start At The Same Time On Same Day?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1026074
    Amber
    Participant

    We’re using ECP and have 3 events that start at the same time (end at different times) on the same day.

    We would like to rearrange the order in which the events appear. I’m not quite sure how to go about doing this. They don’t appear in alphabetical order and changing the published date doesn’t appear to work either.

    I didn’t see an option to change this, unless I missed it. What is the best way to re-arrange the event order?

    #1026501
    George
    Participant

    Hey @creativecollab,

    There’s unfortunately no easy way to do this at this time 🙁

    The order is dictated by code deep within the core of the plugin, and so it’s unfortunately pretty complicated to modify at all. And since it’s core plugin code, it would be overwritten any time you updated the plugin.

    Despite what I wrote above, if you’re REALLY interested in changing this regardless, then you would have to head to your plugin files for The Events Calendar. Then navigate to /src/Tribe/Month.php

    Once in this file, look for the method get_daily_events() – I highlighted the code in a Gist for you here → https://goo.gl/2W2Jgb

    To alter the order, you would modify the 'orderby' parameter. You can learn all the acceptable options for that parameter here → https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters

    I’m sorry that this isn’t easier to change at this time – but I hope this information helps!

    Cheers,
    George

    #1075629
    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 ‘Re-ordering Events That Start At The Same Time On Same Day?’ is closed to new replies.