Exclude category from calendar view (month, week, day)

Home Forums Calendar Products Events Calendar PRO Exclude category from calendar view (month, week, day)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1299373
    Lloyd
    Participant

    Hi,

    I would like to know how to exclude a category from a calendar view (domain.com/events) for all months.
    Also i would like to show this category in a page with the Grid plugin (https://codecanyon.net/item/the-grid-responsive-wordpress-grid-plugin/13306812).

    The second one i can accomplish it without problem, because with this plugin i could select only one event category.

    I don’t want the first issue affect how the grid plugin show the events.

    More specific, I have create an event category Discount & Offers and i don’t want these events to show in Calendar page (domain.com/events) for all months and with all views (month, day, week).

    I have create a separate page in order to show the events from this category (Discounts & Offers) with the help of the above plugin.

    Hope you can help me!

    Thanks!

    #1299493
    Jennifer
    Keymaster

    Hi Lloyd,

    Thanks for reaching out! I’d be happy to help you with this.

    To exclude certain categories from the main calendar, can you give this snippet a try and see if it works for you? This shouldn’t affect your other plugin, but let me know if it does.

    Make sure to replace the slugs in array( ‘family-fun’ , ‘bbq’) with your category slug : array( ‘your-slug’ ). You can add multiple slugs here if you would like to hide multiple categories. To find your slug, go to Events > Event Categories and selecting the category. Make sure you use this and not the category name!

    Let me know how that works for you!

    Thanks,

    Jennifer

    #1299550
    Lloyd
    Participant

    Hi Jennifer,

    The code seems to work so far without problem.
    For any issues i will come back for further assistance.

    Thank you!

    • This reply was modified 8 years, 11 months ago by Lloyd.
    #1300043
    Jennifer
    Keymaster

    Hi Lloyd,

    I’m glad to hear that’s working for you!

    I’ll go ahead and close this thread out since it’s been marked “resolved”, but please do open a new one if you need any further assistance.

    Thanks!

    Jennifer

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Exclude category from calendar view (month, week, day)’ is closed to new replies.