I need some help with the correct logic…I’m trying to have a widget appear across my blog EXCEPT for in a category (the widget should NOT appear in both the category landing page and single posts of that category).
This logic is not working:
!( is_single() && in_category (‘how-to-not-look-like-a-freshman’)) || !is_category (‘how-to-not-look-like-a-freshman’)
The widget is not appearing on the category landing page (which I want), but is showing on the single posts in the category…
how do I properly form !( is_single() && in_category (‘how-to-not-look-like-a-freshman’)) so that the widget won’t appear in the single posts of the category?
- The topic ‘exclude from category -both category landing and single posts’ is closed to new replies.