Title: Reverse eventlist
Last modified: August 21, 2016

---

# Reverse eventlist

 *  Resolved [Sjoerd van Heummen](https://wordpress.org/support/users/welovetraffic/)
 * (@welovetraffic)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/reverse-eventlist/)
 * Hi Jeroen, is there a built-in way to change the order of the eventlist? (want
   to show newest datetime field on top)
 * [https://wordpress.org/plugins/theatre/](https://wordpress.org/plugins/theatre/)

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

 *  Plugin Author [Jeroen Schmit](https://wordpress.org/support/users/slimndap/)
 * (@slimndap)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/reverse-eventlist/#post-5109684)
 * That would require some coding in your theme’s functions.php. Is that an option
   for you?
 *  Thread Starter [Sjoerd van Heummen](https://wordpress.org/support/users/welovetraffic/)
 * (@welovetraffic)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/reverse-eventlist/#post-5109705)
 * Thx for your fast reply.
    Some coding in functions.php would be no problem, could
   you guide me a bit in the right direction? thx!
 *  Plugin Author [Jeroen Schmit](https://wordpress.org/support/users/slimndap/)
 * (@slimndap)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/reverse-eventlist/#post-5109742)
 * You need to use the `pre_get_posts` action to change the sorting order of the
   query. Something like:
 *     ```
       add_action( 'pre_get_posts', 'change_events_order' );
   
       function change_events_order( $query ) {
         if ($query->get('post_type') == WPT_Event::post_type_name) {
           $query->set( 'order', 'ASC' );
         }
       }
       ```
   
 * I didn’t test the code above, but it should get you started.
 *  Thread Starter [Sjoerd van Heummen](https://wordpress.org/support/users/welovetraffic/)
 * (@welovetraffic)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/reverse-eventlist/#post-5109751)
 * Thanks Jeroen! I’ll dive in this weekend.

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

The topic ‘Reverse eventlist’ is closed to new replies.

 * ![](https://ps.w.org/theatre/assets/icon-256x256.png?rev=1208182)
 * [Theater for WordPress](https://wordpress.org/plugins/theatre/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theatre/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theatre/)
 * [Active Topics](https://wordpress.org/support/plugin/theatre/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theatre/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theatre/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [Sjoerd van Heummen](https://wordpress.org/support/users/welovetraffic/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/reverse-eventlist/#post-5109751)
 * Status: resolved