Restrict Grid Calendar to multiple event categories

Home Forums Calendar Products Events Calendar PRO Restrict Grid Calendar to multiple event categories

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #23964
    Ken
    Participant

    Is there any way to restrict / filter the event calendar to a list of event categories (not all, not just one, but a list of several)? We have volunteer only events that should not display on the main calendar, but we want to show them on a separate calendar.

    #23990
    Barry
    Member

    Hi Ken, thanks for getting in touch.

    Daniel put together some pretty nice code (which, for easiness, you could place in your theme’s functions.php file) that might be of interest here:

    https://gist.github.com/3415684

    The way that piece of code works is to hide any events assigned to the special “hidden” category. I would imagine you could extend this and add as many different categories as you wish (the line you would need to edit being line 15).

    I appreciate this is effectively the inverse of what you are after, but it might let you achieve the same effect. Alternatively, if you are confident working with code, you could probably take Daniel’s code and bend it to your requirements.

    Hopefully that gets you on the right track – and let us know how you get on!

    #977591
    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 ‘Restrict Grid Calendar to multiple event categories’ is closed to new replies.