Exclude categories from calendar widget?

Home Forums Calendar Products Events Calendar PRO Exclude categories from calendar widget?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #25430
    Torstein
    Participant

    Hi, is there any way to limit the calendar widget to certain categories?

    PS: I have tried searching, but google gives a lot of really strange results from your site: https://www.google.com/search?q=site%3Atri.be+exclude+category+from+calendar+widget, and there seems to be some results I cant find when I use your search function

    #25478
    Jonah
    Participant

    Hi Torstein,

    Unfortunately this won’t be too easy at the moment. To do it you’d need to modify /wp-content/plugins/the-events-calendar/views/table-mini.php by placing a copy in an ‘events’ folder in your theme and then changing the query to use WP_Query instead of tribe_get_events() so you can use tax_query args and limit the categories. This is likely going to have impacts to the rest of the code in the file and this is where it gets tricky.

    We are working on some changes to allow for more flexibility in our queries but this probably won’t be out until 2.1 which will be a couple/few months.

    I hope that helps!

    – Jonah

    #25494
    Torstein
    Participant

    hmmmm… I was afraid so :/

    Well, a suggestion then: add some options like including/excluding categories and such to the calendar widget, it seems like other people also have asked for things like this earlier 🙂

    Thanks Jonah 🙂

    #25518
    Jonah
    Participant

    Hi Torstein,

    I’ve gone ahead and added this as a feature request for 2.1. No guarantees it will make it in then but we’ve got it on our map.

    Regards,
    Jonah

    #25524
    Torstein
    Participant

    Thanks Johah! 🙂

    #977815
    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 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Exclude categories from calendar widget?’ is closed to new replies.