• I am building a website for a basketball organization and would like to use The Events Calendar for their tournament schedule. Each team has their own page on the site. I would like to have one master calendar with all the schedules, and then when you go to the page for team “A”, you only see the schedule for team “A”. Same for team “B”, “C”, etc…

    Is there any way to filter The Events Calendar based on what page you are on?

    http://wordpress.org/extend/plugins/the-events-calendar/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey katiehoehn,

    You could most easily accomplish this with Event Categories for each of your teams. Specific category pages are automatically created for each category so these would be your separate team pages. Try that out and let me know if you have any questions.

    Cheers,
    Jonah

    Thread Starter katiehoehn

    (@katiehoehn)

    That makes sense.

    But what if I want to add additional content to that page? For example, a team photo, or maybe a roster. I’m not sure where to edit that page through the dashboard. Or do I need to create a template page for each Event Categories page?

    Thanks so much for your help!

    Hey katiehoehn,

    Depending on what you have set for your Events Template in Settings > The Events Calendar > Template, you can modify one of two templates. If you have the “Default Events Template” selected, you can edit /wp-content/plugins/the-events-calendar/views/ecp-page-template.php – if you have anything else, you can edit your theme’s page.php or other page template.

    You’ll probably want to conditionally display specific things by category and you can do so with this type of code in one of the above templates:

    if (is_tax('tribe_events_cat', 9)) { //were viewing events category 9
    
    } elseif(is_tax('tribe_events_cat', 10)) { //were viewing events category 10
    
    }

    …substituting the ID’s with your event category ID’s.

    Hopefully that gives you more to work with 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘The Events Calendar: Filter Calendar by Page’ is closed to new replies.