Show only events of a specific category in the calendar

Home Forums Calendar Products Events Calendar PRO Show only events of a specific category in the calendar

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1105255
    Ruud
    Participant

    Hi,

    This thread resembles another thread but I require some additional help.

    I´ve made 3 event categories; 2 of them I only like to show in a widget. To do so, I can simply select the event category/ies that should be included/excluded, and voila, it works.

    Now for the main calendar page, however, I´m not able to do this, but I would like to do so. Thus, only show events on the events/calendar page from 1 specific event category and regardless of what view the visitor selects. So regardless if its calendar, week, month or map view.

    Please help.

    Kind regards,
    Ruud

    #1105351
    Ruud
    Participant

    I think I solved it. Simply have the category included in the menu, so that only those events that belong to the concerning catgory are shown.

    Ruud

    #1105352
    Nico
    Member

    Hey Ruud,

    Thanks for reaching out to us on this! I’ll help you here…

    I’ve created a snippet for you to us, just paste it in your theme’s functions.php file, and of course change the category slug:

    https://gist.github.com/niconerd/90696d902ea7d42cd3d67d39040eb0ab

    Please let me know if it works for you,
    Best,
    Nico

    #1105361
    Nico
    Member

    Hey Ruud,

    Thanks for the heads-up, and glad to hear you could find a work around!

    Seems we posted at the same time 🙂

    Please let me know if I can close this thread,
    Best,
    Nico

    #1111513
    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 ‘Show only events of a specific category in the calendar’ is closed to new replies.