How to Exclude Category from Event List

Home Forums Calendar Products Events Calendar PRO How to Exclude Category from Event List

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1116162
    Rhonda
    Participant

    I am trying to create a separate list of events that does not show up on the main list. Is there a way to exclude a category from the main list and list all the other categories?

    Thank you. I searched this forum and don’t see the answer to this question.

    Rhonda

    #1116206
    Josh
    Participant

    Hey Rhonda,

    Thanks for reaching out to us!

    Take a look at this snippet. It should work for the category slugs that you choose to add to that array to hide from your main calendar list.

    Let me know if this helps.

    Thanks!

    #1116671
    Rhonda
    Participant

    This reply is private.

    #1116951
    Josh
    Participant

    Hey Rhonda,

    Thanks for reaching out to us!

    I just tested out the snippet and it appears to be working as expected on my local install. When updating the array to match the slugs from the categories that you’re wanting to hide, make sure you’re updating in the actual snippet and not the note for the snippet at the top. I realize the wording there in the note for the snippet could be a little confusing on that front.

    Also, this snippet will just hide it from the main calendar. You should still be able to access the category archive for that category so the link you provided as an example will still be accessible.

    Let me know if this helps.

    Thanks!

    #1122496
    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 ‘How to Exclude Category from Event List’ is closed to new replies.