• 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)
  • 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

    (@andrewfender)

    I don’t, but if it’s not too hard, I could learn.

    No, they’re not.

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Automatically sorted lists?’ is closed to new replies.