Title: Reverse order help
Last modified: August 31, 2016

---

# Reverse order help

 *  [Gusss](https://wordpress.org/support/users/gusss/)
 * (@gusss)
 * [10 years ago](https://wordpress.org/support/topic/reverse-order-help/)
 * Can someone tell me EXACTLY where I need to go INSIDE wordpress (not usingFTP)
   to edit this line of code so that events are in the right order (ie showing latest
   event first)
 * $order_direction = ‘DESC’;
    to $order_direction = ‘ASC’; and line 309: $order_direction
   = ‘ASC’; to $order_direction = ‘DESC’;
 * [https://wordpress.org/plugins/all-in-one-event-calendar/](https://wordpress.org/plugins/all-in-one-event-calendar/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Benjamin](https://wordpress.org/support/users/bsokic/)
 * (@bsokic)
 * [10 years ago](https://wordpress.org/support/topic/reverse-order-help/#post-7429033)
 * Hi,
 * It is necessary to access the plugin files(all-in-one-event-calendar/app/model/
   search.php) in order to change the code, so you need to use FTP, cPanel or similar.
 *  Thread Starter [Gusss](https://wordpress.org/support/users/gusss/)
 * (@gusss)
 * [10 years ago](https://wordpress.org/support/topic/reverse-order-help/#post-7429037)
 * Ok I changed it to say :
 * $order_direction = ( $page_offset >= 0 ) ? ‘DESC’ : ‘ASC’;
    if ( false !== $last_day){
   if ( 0 == $last_day ) { $last_day = $time; } $filter_date_clause = ‘ i.end ‘;
   if ( $page_offset < 0 ) { $filter_date_clause .= ‘<‘; $order_direction = ‘ASC’;}
   else { $filter_date_clause .= ‘>’; $order_direction = ‘DESC’; }
 * still no difference ?
 *  [thefonzie](https://wordpress.org/support/users/thefonzie/)
 * (@thefonzie)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/reverse-order-help/#post-8320657)
 * Yeah. That code change didn’t work for me either. I’ve seen another website (
   getmyhallpass.com) where it has the gigs in reverse order, but I can’t figure
   it out.
 * So many hours invested in this, would love to get it right!
 * JT

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Reverse order help’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/all-in-one-event-calendar.svg)
 * [Timely All-in-One Events Calendar](https://wordpress.org/plugins/all-in-one-event-calendar/)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-event-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-event-calendar/reviews/)

## Tags

 * [reverse order](https://wordpress.org/support/topic-tag/reverse-order/)

 * 3 replies
 * 3 participants
 * Last reply from: [thefonzie](https://wordpress.org/support/users/thefonzie/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/reverse-order-help/#post-8320657)
 * Status: not resolved