Support » Plugin: Events Manager » [Plugin: Events Manager] Calendar items not arranged chronologically

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Marcus

    (@netweblogic)

    i believe if you have the right order set in the page for the default events list (settings page) the shortcode supports the order attribute (see site documentation)

    I think I may have also experienced this issue, too. I’m using an older version (3.0.95).

    The settings page for ordering of events only appears to be for controlling the “Events” page, and not the “Calendar” page. The issue is, as said above by fanatical_g, the events in each day-box are listed in the order that they were entered, and not in the chronological order that they are actually going to occur throughout their given day. I’ve been digging through the code all night tonight to find a solution and here’s what worked for me:

    In the “classes” directory, find the file “em-calendar.php” and right after $long_events = $args['long_events']; (approximately at line 16 in v. 3.0.95) insert the following code and save the file:

    $args = array(
    ‘orderby’ => ‘start_date,start_time,name’,
    ‘order’ => ‘ASC’,
    );

    At least this worked for me.

    Wellest wishes!

    Actually, the code above is having some ill repercussions elsewhere, I’ll check back later as I continue get it ironed out.

    Later….

    Okay the code above should instead be:

    $full = $args = array(
    ‘orderby’ => ‘start_date,start_time,name’,
    ‘order’ => ‘ASC’,
    );

    And that makes all of the “Calendar” pages work now. 😀

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Events Manager] Calendar items not arranged chronologically’ is closed to new replies.