WP Calendar
[WP Calendar] Not showing past events (8 posts)

  1. Pookster
    Posted 5 years ago #

    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?

  2. Pookster
    Posted 5 years ago #


  3. faebu
    Plugin Author

    Posted 5 years ago #

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

      array( 'datefrom'   => mktime(0,0,0,1,1,2011),
             'dateto'     => mktime(23,59,59,12,31,2011)
  4. daDirtyD
    Posted 5 years ago #

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

  5. daDirtyD
    Posted 4 years ago #

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

  6. Uta13
    Posted 4 years ago #

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

  7. dorothai
    Posted 4 years ago #


    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.

  8. faebu
    Plugin Author

    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic