• Resolved Creatrix

    (@chrisl_57)


    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author mibuthu

    (@mibuthu)

    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

    (@chrisl_57)

    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

    (@chrisl_57)

    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

    (@mibuthu)

    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.