WordPress.org

Support

Support » Plugins and Hacks » WP Calendar » [WP Calendar] Not showing past events

[WP Calendar] Not showing past events

  • With the fse_print_events_list command i’m creating a list of events. I want a list to be displayed of all events hapening in one year. At the moment i’m only getting future events.

    Is it possible to display past events?

Viewing 7 replies - 1 through 7 (of 7 total)
  • anyone?

    Plugin Author faebu

    @faebu

    did you read the documentation? the function pse_print_events_list support a lot of parameters to control the output and its all well documented in the settings page!

    this should do the job. this prints all event which are in 2011, even if they started in 2010 (but ended in 2011) and even if they are ending in 2012 (but started in 2011).

    fse_print_events(
      array( 'datefrom'   => mktime(0,0,0,1,1,2011),
             'dateto'     => mktime(23,59,59,12,31,2011)
      )
    );

    Hi Faebu,

    I want to show the past 3 events.

    How would the shortcode look like? (including a category and a numer of 3 events)

    I thought of
    {events_print; categories="1"; orderby=dateto; number=3;"}
    but i guessed wrong 😉

    Hi Faebu,

    I m trying to get an “see what you just missed”-event-list to work.

    I found out how to show Events in a period of time (start and end timestamp)

    But what I didn’t find out yet, is how to show the last (lets say 3) events. The endtimestamp should be yesterday (as a changing value, not as the date of yesterday dd.mm.yyyy)

    Is there a chance of displaying events until yesterday?
    Something like 'dateto' => mktime(yesterday) ?

    Hi daDirtyD,
    this is exactly my problem, too.
    Have you found a solution for this already?
    Any help would be appreciated.

    http://en.kioskea.net/faq/1861-mktime-timestamp-yesterday-last-month-etc#last-24-hours

    here you can find all the possible dates back, which you can use with this calendar by including it into the array as Faebu mentioned.

    Plugin Author faebu

    @faebu

    new version support new keywords ‘now’ and ‘today’ and some basic arithmetic caluclations for calculation such things!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[WP Calendar] Not showing past events’ is closed to new replies.
Skip to toolbar