Here's what I'm trying to do, and I'm sure there's a simple solution, but I just can't get it working.
On my archive/cat pages, I have an ad section at the top of the page which is directly above the archive/category results.
What I would like to do is have a specific ad block shown depending on the archive category.
So lets say I have a Golf category. I've made a php file with my golf specific ads and I want to use something like <?php include("golfads.php"); ?> to show those ads. But I'll need to have it determine if the page is the Golf category by using <?php if (is_category('golf')) : ?>.
How do I merge these two pieces into one piece of code that will pull the golfads.php page when the cat is golf. I have 30 categories that I would need to set up just like this. If someone could throw me a bone here (not literally), I'd be eternally grateful.
On my archive/cat pages, I have an ad section at the top of the page which is directly above the archive/category results.
What I would like to do is have a specific ad block shown depending on the archive category.
So lets say I have a Golf category. I've made a php file with my golf specific ads and I want to use something like <?php include("golfads.php"); ?> to show those ads. But I'll need to have it determine if the page is the Golf category by using <?php if (is_category('golf')) : ?>.
How do I merge these two pieces into one piece of code that will pull the golfads.php page when the cat is golf. I have 30 categories that I would need to set up just like this. If someone could throw me a bone here (not literally), I'd be eternally grateful.