Past events widget

Home Forums Calendar Products Events Calendar PRO Past events widget

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #11500
    Tilo
    Participant

    how can I create a widget with a list of past events?
    Thanks!

    #11522
    Tilo
    Participant

    mhh is there any support team?

    #11527
    Rob
    Member

    Hey Tilo. Not sure if you saw the sticky post we had here on the forum, but support was limited (and at times entirely absent) the past week due to the Thanksgiving holiday 🙂 We’re back on support this morning so you’ll receive a response on this today.

    #11543
    Jonah
    Participant

    Hi Tilo,

    What I would recommend doing is follow my tutorial on Customizing Widgets (https://theeventscalendar.com/how-to-completely-customize-widgets/) but do the customizing for the TribeEventsListWidget found in plugins/the-events-calendar/lib/widget-list.class.php – I would create another separate copy of the widget (still keep the old one).

    Then, all you need to do is change the query there so line 43 reads:


    $posts = tribe_get_events( 'eventDisplay=past&numResults=' . $limit .'&eventCat=' . $category );

    instead of:


    $posts = tribe_get_events( 'eventDisplay=upcoming&numResults=' . $limit .'&eventCat=' . $category );

    Hope that helps.

    – Jonah

    #974657
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Past events widget’ is closed to new replies.