I'm trying to display 2 sets of ads:
1. Default ads (should appear everywhere except cat 2 & 3)
2. Ads for category 2 & 3 pages and posts in either cat 2 or 3.
This is what I have:
[Default AD CODE]
!is_category( array( 2, 3 ) ) && !in_category( array( 2, 3 ) )
[AD CODE for categories 2 & 3]
is_category( array( 2, 3 ) ) || in_category( array( 2, 3 ) )
This is what's happening:
The ads meant for categories 2 & 3 are showing up on the homepage, on the categories 2 & 3 pages, and on posts in categories 2 & 3. It's not supposed to show up on the homepage.
The other ads meant for the rest of the site do show up on other category pages and posts pages that are not in category 2 or 3. They do not appear on the homepage.
The weirdest thing about this problem is that sometimes it works... and sometimes it doesn't. Any ideas?