I need to be able to show a custom sidebar when the events calendar grid/list view is shown and when a single event or venue is being shown.
At the moment I test for various conditions (whether a page or post is being shown, what the template type is, page ID and root page ID) but this doesn’t work for events as the template is always “page” and the page id is always different.
I can’t rely on tribe_get_current_template() either as this always returns a value regardless of whether the events calendar is being viewed or not.
I need to be able to test something along the lines of “is the event calendar grid/list/info/venue being viewed” but don’t know what the code would be to do this.
Sorry if this is jumbly and unclear.