I have a section of code which is global for all posts of my blog.
However, for certain categories, I do not want this code to be displayed.
Is it possible to prevent the code from displaying in posts under a specific category using something similar to <?php if> or is there any other way?