Excluding categories from month view in the calendar

Home Forums Calendar Products Events Calendar PRO Excluding categories from month view in the calendar

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #65012
    dimitrilongo
    Participant

    Hello

    I’m trying to exclude specific cat from month view calendar, I read severals threads about that, but I can’t understand what I m doing wrong. I insert into function.php the code to exclude
    https://gist.github.com/jo-snips/2270007

    and change the operator, but it works when i change to list view, weeks but still appear in month, day, photo and map view.

    I miss something.

    Thank you for help
    Dimitri

    #65165
    Kelly
    Participant

    Hi, Dimitri. Thanks for getting in touch about your issue.

    Would you mind posting the code you’re using so that I can troubleshoot that? Once I have that to look at, we can take it from there.

    Thanks!

    #65177
    dimitrilongo
    Participant

    hello

    the code is the same as Jonah, my paste http://pastebin.com/Ue198H86.
    As I said works on list view but don’t in month view beside that “view all” also disappear.

    Thanks a lot

    #65363
    Kelly
    Participant

    Hi, Dimitri. Thanks for your paste.

    In month view, a query currently runs for every single day. Please note that this is liable to change in a future release; however, at present, eventDisplay for those particular queries is set to ‘custom’. and you would need to change your code to catch this.

    Since this is really a bespoke customization, we can’t provide too much more help, but you might also consider (should it be easier) overriding the relevant template and testing each event to see if it belongs to one of the ‘banned’ categories and then skipping it (or not) on that basis.

    I hope that helps get you on your way. Sorry we can’t offer more in-depth assistance.

    #980741
    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 ‘Excluding categories from month view in the calendar’ is closed to new replies.