Ability to Select What Events Display on Calendar

Home Forums Welcome! Pre-Sales Questions Ability to Select What Events Display on Calendar

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1361412
    Shane Clark
    Guest

    Client wants to be able to choose which events show in the calendar, instead of all by default.
    Currently all events show in the calendar. I think a box that says “Do not display in calendar view” would be sufficient.

    #1361811
    Geoff B.
    Member

    Good evening Shane and welcome to the Events Calendar forum!

    Thank you for your interest in our products.
    We’ll be glad to answer your questions.

    Client wants to be able to choose which events show in the calendar, instead of all by default.

    There are a couple of ways to achieve this:

    1. Display only certain event categories in all views. You could apply the following snippet in the functions.php file of your theme (without the PHP tag at the top) after tweaking it: https://gist.github.com/jentheo/676f4c627246db43ad36a3d484ebb91e
    2. Limit category visibility based on wether or not the user is logged-in https://gist.github.com/cliffordp/799c1b546b79ad7626141bdc00974f53#file-functions-php
    3. Limit category visibility to user role: https://gist.github.com/elimn/c47fb3e65d437c2479bd#file-tribe_exclude_events_category-php

    Let me know if that helps.

    Have a great day!

    Geoff B.

    #1372998
    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 ‘Ability to Select What Events Display on Calendar’ is closed to new replies.