[Plugin: Widget Logic] – anyone figure the logic to do this…?
-
I’m using the Widget Logic plugin to load adverts dependent upon the category.
For example, this is the code I have at present for a category:
is_category(31) || is_single() && in_category(31)
I have one of these set for every category.
This is working great except that if a post is in 2 or more categories, it is getting the ads for both sets of categories it belongs to. You can see the problem here: https://www.testtrack.tv/red-bull-hell-barge/ – see the three lots of header adverts (as it belongs to three categories)?
Does anyone know of a way to amend the logic so the widget only shows if the item belongs to a single category only?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘[Plugin: Widget Logic] – anyone figure the logic to do this…?’ is closed to new replies.