A function to exclude a tag from the MAIN /events/ query, but not the shortcode.

Home Forums Calendar Products Events Calendar PRO A function to exclude a tag from the MAIN /events/ query, but not the shortcode.

  • This topic has 3 replies, 2 voices, and was last updated 8 years, 6 months ago by Vanderbilt Digital Strategies.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1353672

    We are using TEC for both an internal and external calendar. We specify a tag (‘internal’ or ‘external’) and that determines whether or not the event is being show. We’re using the default /events/ grid as the “external” calendar, but would like to create an internal calendar (hidden behind a secure page) that shows all external and internal events.

    Is there a way to exclude the tag from the main grid, but NOT the shortcode-based grid?

    ~Mitch

    #1354214
    Cliff
    Member

    Hi Erin / Mitch.

    Please give this snippet a try:

    https://gist.github.com/cliffordp/799c1b546b79ad7626141bdc00974f53

    You might need to modify it for your usage, but hopefully it works for you. I didn’t give it 100% thorough testing so please do yourself.

    #1364689
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘A function to exclude a tag from the MAIN /events/ query, but not the shortcode.’ is closed to new replies.