puzzlement re widget logic and conditional tags
-
found widget logic – awesome plug in for displaying sidebar content in different categories and under tags, but having problems with the conditional logic when a post is tagged in more than one category
in_category(‘cool’) works to display content only in the cool category
but if the post is tagged with a second category – i.e. let’s say in the ‘widget’ category, then I get the sidebar content for both sections, which makes things a bit messy
I’m sure there’s a simple fix here. But is there a way to display in one category and not another – or better yet in ONLY one ??
seems like it might make sense to use in_category(‘cool’) || ! in_category(‘widget’) but that ain’t working …
/ J
The topic ‘puzzlement re widget logic and conditional tags’ is closed to new replies.