How to show historical dates ie events in the past…

Some folks have asked if it is possible to show historical dates, or rather some dates in the past.   Many possibilities exist either in the shortcode and in passing parameters via the url.  One can use any of the following:

  • listtype=n
  • days=n
  • events=n
  • start=yyyymmdd
  • startoffset=n (number of days – can be negative)
  • hoursoffset = n (number of hours – can be negative)
  • monthsoffset=n (number of months – can be negative, will override days and hours)
  • sort_later_events_first=1 (to reverse the order)

So to start any event calendar from 30 days in the past, add startoffset=-30 to the shortcode separated by spaces.

As always remember that there is both a time limit and a number of events limit. Choose an appropriate combination.

  • As a rule of thumb, unless you only want to show a few ‘x’ events, set the number of events to just more than you expect to have in the time period you have requested. EG: if you usually have 3 events in a month and want to show two months, then maybe set events to 15 just to be sure
  • If you don’t want an excessively long list, set number of events to a reasonable number for the page and then balance the load – don’t go for a hugely excessive time range and then say show only 6 events.  Using the numbers above, if you only ever want to show 6 events and have on average 3  a month, but maybe some months nothing, then maybe set months=4 and events=6.  The plugin has to calculate out all the events, sort and match any adjusting events and then reduce the number to what you requested.

Note: The default css will show the historical dates as slightly greyed out.