When viewing an event category page (i.e. mydomain.com/events/category/category-name), I am trying to detect the event category to which the events on the page belong. I have code in place that detects when a page is an event category page, and it works well. So I am able to detect that I’m on a category page, but I cannot figure out how to retrieve the event category itself. How would I do this? I have spent a lot of time searching and trying different things, but I can’t seem to successfully retrieve the category.
The reason I am looking to do this is because I want to display a different logo image on the page depending on what the category is.
I did have the thought that I could try parsing the page’s URL for the category slug, but I’d prefer a less ugly – and more robust – method if possible.
Thanks,
Ben
-
This topic was modified 10 years, 2 months ago by
excaladmin.
-
This topic was modified 10 years, 2 months ago by
Brian.