Title: Automatically sorted lists?
Last modified: August 30, 2016

---

# Automatically sorted lists?

 *  [andrewfender](https://wordpress.org/support/users/andrewfender/)
 * (@andrewfender)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/automatically-sorted-lists/)
 * I want to set up a simple ‘Events’ page which will hold two lists: one for upcoming
   events, and one for past events. Basically, I want the page to automatically 
   move any event that is in the ‘Upcoming events’ list into the ‘Past events’ list
   when the date for the event has been reached and is in the past, so that I don’t
   have to manually edit the page every time an event passes.
 * I’ve had a look around for plugins that might provide this functionality, but
   I couldn’t find anything straight-forward enough. What would be the easiest way
   to achieve this?
 * Thanks!

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

 *  [Mr Case](https://wordpress.org/support/users/mr-case/)
 * (@mr-case)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/automatically-sorted-lists/#post-6651347)
 * Do you know PHP? You would have to write a custom layout that can get the current
   date (today) and compare it against the dates on the posts. Then a conditional
   statement to compare the two.
 * Are the ‘events’ set up as a custom post type by chance?
 *  Thread Starter [andrewfender](https://wordpress.org/support/users/andrewfender/)
 * (@andrewfender)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/automatically-sorted-lists/#post-6651356)
 * I don’t, but if it’s not too hard, I could learn.
 * No, they’re not.
 *  [Mr Case](https://wordpress.org/support/users/mr-case/)
 * (@mr-case)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/automatically-sorted-lists/#post-6651412)
 * Hmmm. The best way to accomplish this yourself would be to set up a custom post
   type for your events so you could manage them easily. Then write a layout that
   would do what I said in my previous comment.
 * If you don’t want to dive neck deep into wordpress codex and PHP you can use 
   a plugin. Have you looked at this one? [Events Manager](https://wordpress.org/plugins/events-manager/)

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

The topic ‘Automatically sorted lists?’ is closed to new replies.

## Tags

 * [automatically](https://wordpress.org/support/topic-tag/automatically/)
 * [events](https://wordpress.org/support/topic-tag/events/)
 * [lists](https://wordpress.org/support/topic-tag/lists/)
 * [page](https://wordpress.org/support/topic-tag/page/)
 * [sorted](https://wordpress.org/support/topic-tag/sorted/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Mr Case](https://wordpress.org/support/users/mr-case/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/automatically-sorted-lists/#post-6651412)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
