Category Listing for Past Events

Home Forums Calendar Products Events Calendar PRO Category Listing for Past Events

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1054836
    Dwayne
    Participant

    Hello,

    On my website, I am displaying a list of Past Events. In the Summary I am also showing the Categories for these events.

    When clicking on the category for the past events, the page defaults to the Upcoming events in that category (not the past events).

    How would I go about linking category pages which show events in the past? Is there a variable I can save and use on the category page, or some kind of pre-created solution for this functionality? Any insight into documents or code that would be helpful would be much appreciated.

    Thanks.

    #1055392
    Brian
    Member

    Hi,

    Thanks for using our plugins. I can help out here.

    By default we create the category views for the calendar and each one of those creates a past events area if there are events.

    We do not have a method to dynamically link there, but you could use the links generated when you vist it.

    For instance if you have a category called lettuce, this would link to the past events first page for it in list view:

    yoursite.org/events/category/lettuce/list/?tribe_paged=1&tribe_event_display=past

    You could get those links for any of the past event category views you would like.

    Let me know if you have any follow up questions.

    Thanks

    #1055443
    Dwayne
    Participant

    Brian,

    Thanks for sharing this info with me.

    Is there a way to store a variable on this page – something that could be added to the body class etc?

    I want to conditionally hide some info on these archive pages for past events.

    I see “tribe-events-header” is getting this URL string (calendar/list/?tribe_event_display=past) as the data-baseurl.. Maybe I can apply that to a CSS class name for the entire wrapper on this page?

    Thanks so much.

    • This reply was modified 10 years, 3 months ago by Dwayne. Reason: typos
    #1055465
    Brian
    Member

    Here is a list of our conditionals:

    https://gist.github.com/jesseeproductions/903f5ca75877b713c674

    One of those might work.

    #1076744
    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 ‘Category Listing for Past Events’ is closed to new replies.