• Resolved tjesker

    (@tjesker)


    When I click on a date on the calendar I see the events for that day listed like this:

    5 Dec 9 am – 4 pm All Day
    5 Dec 9 am – 12 pm Ethics, Professionalism & Mental Health (AM)
    5 Dec 11 am – 12 am Mental Health Hour Only (AM)
    5 Dec 1 pm – 4 pm Ethics and Professionalism (PM)

    …but I want them to be ordered like this:

    5 Dec 9 am – 12 pm Ethics, Professionalism & Mental Health (AM)
    5 Dec 11 am – 12 am Mental Health Hour Only (AM)
    5 Dec 1 pm – 4 pm Ethics and Professionalism (PM)
    5 Dec 9 am – 4 pm All Day

    I tried doing that by changing:

    Settings->Calendar->Calendar Day Event List Settings->Default event list ordering

    …to “Order by Event Name and then Event Start Time” – “Descending, Ascending”

    …which seems like it would do the trick but it has no effect. In fact I tried every combination in both drop down lists, saved and then shift refreshed the page and the event order never changed.

    Is there some other way I’m supposed to do this or something I need to do differently?

    • This topic was modified 6 years, 4 months ago by tjesker.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • I know you mentioned trying this but now switch to the default theme and try options at Events > Settings > Formatting > Calendar > Default event list ordering? or modify calendar template at wp-content/plugins/events-manager/templates/templates/calendar-full.php

    to use templates: http://wp-events-plugin.com/documentation/using-template-files/

    eg.
    search line

    <td class=”<?php echo $class; ?>”>
    then below this line you can sort

    <?php ksort($cell_data[‘events’]); ?>
    another useful link: http://www.the-art-of-web.com/php/sortarray/#.UhF8atLrySo

    Thread Starter tjesker

    (@tjesker)

    Thanks Jordanthedesigner but my search of calendar-full.php did not find:
    <?php ksort($cell_data[‘events’]); ?>
    The closest thing I found was:
    <td class=”<?php echo esc_attr($class); ?>”>
    so I inserted:
    <td class=”<?php echo $class; ?>”>
    …below that but it had no effect.
    Any suggestions?

    • This reply was modified 6 years, 4 months ago by tjesker.
    Plugin Support angelo_nwl

    (@angelo_nwl)

    did you already tried option under Events > Settings > Formatting > Calendar > Default event list ordering ?

    Thread Starter tjesker

    (@tjesker)

    Thanks angelo_nwl for your reply. Yes. I previously tried every combination in the two “Default event list ordering” drop down lists and shift refreshed the page each time and it had no effect on the sort order. Then as instructed by Jordanthedesigner, I changed to a different theme (twenty seventeen), changed the drop down lists various ways and shift refreshed again and it again had no effect on the sort order. Sorry I forgot to mention that I did do that in my last reply.

    Just now I deactivated all plugins except Events Manager and Events Manager Pro, changed to Twenty Seventeen and got the same result.

    Any other ideas?

    I think the issue is that the ordering you want to use is essentially a custom order – it’s not sequential.

    The only possible solution I can think of would be to create some custom jQuery / Javascript code that rearranges the order on the page when it’s loaded in the browser.

    Thread Starter tjesker

    (@tjesker)

    My client decided he likes the order it’s in now so it’s become a non-issue. Thanks for your help. Okay to close ticket.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Need help sorting events list on calendar’ is closed to new replies.