I found a post related to this that gave this link: http://pastebin.com/kAX9w2ME
and that was exactly what i needed to target an event category page (where I wanted to put a button in the side bar that says “view past events in this category”).
But now I want to put another button on the same category past events list page, and I can’t figure out how to target it with the widget logic. Can you help?
So on the widget I wanted on the upcoming events category page, I used this:
is_tax(TribeEvents::TAXONOMY, ‘my-event-category-slug’)
and it worked great. There is a button in the side bar saying click here to view past one-day-classes.
Now I’ve made another widget with a button saying “view upcoming one-day class” to go on the past event category page (because it is showing the view past events button which makes no sense on the past events page). Make sense? how should I change this to target that past page: is_tax(TribeEvents::TAXONOMY, ‘my-event-category-slug’)
Thanks