Title: Display previous events?
Last modified: August 21, 2016

---

# Display previous events?

 *  Resolved [Creatrix](https://wordpress.org/support/users/chrisl_57/)
 * (@chrisl_57)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/display-previous-events/)
 * Hi,
    I’m incredibly confused about how i go about displaying past events?
 * This is the shortcode i’m using but it doesn’t seem to be working:
 * [event-list show_filterbar=true filterbar_items=years_hlist(show-all=false|show-
   past=true)]
 * What am i doing wrong?
 * [https://wordpress.org/plugins/event-list/](https://wordpress.org/plugins/event-list/)

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

 *  Plugin Author [mibuthu](https://wordpress.org/support/users/mibuthu/)
 * (@mibuthu)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/display-previous-events/#post-5146555)
 * You have to add the initial_date attribute. The standard is to show only upcoming
   events initially:
    `[event-list show_filterbar=true filterbar_items=years_hlist(
   show-all=false|show-past=true) initial_date=all]`
 *  Thread Starter [Creatrix](https://wordpress.org/support/users/chrisl_57/)
 * (@chrisl_57)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/display-previous-events/#post-5146577)
 * Thanks for the reply, but that shortcode seems to show both past and future events,
   whereas i’m looking to show just the past ones.
 * I tried adding show-upcoming=false but that didn’t seem to work either.
 * This is what i’m now working with:
 * `[event-list show_filterbar=true filterbar_items=years_hlist(show-all=false|show-
   past=true|show-upcoming=false) initial_date=all]`
 * Am i missing something?
 * (Also should i be using hyphens or underscores for the parameters? e.g. show-
   all=false or show_all=false? I noticed on the About page for your plugin the 
   item options column in the table uses underscores but the example a bit further
   down the page uses hyphens?)
 *  Thread Starter [Creatrix](https://wordpress.org/support/users/chrisl_57/)
 * (@chrisl_57)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/display-previous-events/#post-5146636)
 * I’m still can’t manage to get this to work. Can you provide any guidance on if
   i’m using the correct shortcode or not?
 *  Plugin Author [mibuthu](https://wordpress.org/support/users/mibuthu/)
 * (@mibuthu)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/display-previous-events/#post-5146673)
 * If you only want to show past events you have to change “initial_date” to “past”.
   You can also used “date_filter=past”.

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

The topic ‘Display previous events?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/event-list_f8f8f8.svg)
 * [Event List](https://wordpress.org/plugins/event-list/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/event-list/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/event-list/)
 * [Active Topics](https://wordpress.org/support/plugin/event-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/event-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/event-list/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [mibuthu](https://wordpress.org/support/users/mibuthu/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/display-previous-events/#post-5146673)
 * Status: resolved