Exclude category from main calendar but show in another

Home Forums Calendar Products Events Calendar PRO Exclude category from main calendar but show in another

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1284079
    mooresvillecvb
    Participant

    I have 2 calendars on my site – the main EVENTS calendar and then a SPORTS calendar. I want the SPORTS category events to not show up on the main calendar, but still display on the sports calendar. I know I can link to the category results to display only the sports, but how do I keep them from showing up on the main calendar without also blocking them from the sports calendar? I have seen some code for the functions.php file that will exclude, but it seems like it will exclude it from everything, not just one calendar.

    #1284624
    Jennifer
    Keymaster

    Hi Leah,

    Thanks for reaching out! I’d be happy to help with this.

    Try adding this snippet to your functions.php file. It should only remove the “sports” category from the main calendar. Make sure you change the line

    ‘terms’    => array( ‘concert’, ‘convention’ ),

    to

    ‘terms’    => array( ‘sports’ ),

    Let me know how that goes!

    #1294501
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Exclude category from main calendar but show in another’ is closed to new replies.