Include Past Events in Event List Shortcode

Home Forums Calendar Products Events Calendar PRO Include Past Events in Event List Shortcode

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1033216
    Curtis Gadula
    Participant

    Hey,

    I’m using the shortcode [tribe_events_list] to show events for a week we are running. I’d like it to show all events with the tag used in the shortcode (even if they event has technically passed) – is there any simple snippet that would make this possible?

    I’ve looked through the forum and docs and haven’t found anything yet, so any help would be appreciated.

    Here’s the shortcode as it is on my site:
    [tribe_events_list organizer=”true” venue=”true” tag=”wellness-tuesday” limit=”30″]

    #1033571
    Brook
    Participant

    Howdy brockbusu,

    Unfortunately there is not a snippet I have that does that. That would actually be a very complicated thing to do. The list widget and shortcode are built from the groundup around the notion that they are listing upcoming events.

    You might be able to modify them by copying these two files and renaming the classes inside:

    • /events-calendar-pro/src/Tribe/Advanced_List_Widget.php
    • /events-calendar-pro/src/Tribe/Shortcodes/Events_List.php

    From there you could build your own widget and shortcode, and modify its query to accept a starting date. This won’t be easy though, will require an advanced knowledge of PHP and MySQL.

    If you want to request we add this as a feature though, please do on UserVoice (feature suggestion page for The Events Calendar). I could see a few other people perhaps being interested in this as well, and putting on uservoice is the best place to help people find and support your idea.

    Does that all make sense? Will that work for you? Please let me know.

    Cheers!

    – Brook

     

    #1075877
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Include Past Events in Event List Shortcode’ is closed to new replies.