Filter Custom Taxonomy Posts
You’ve posted just the part of code that is responsible for getting the slider, I guess, so it’s a little bit hard to know, where exactly do you use it. But I assume that you use template hierarchy correctly and you use category archives. If so, then you can get current term ID with get_queried_object_id() … Read more