This is one of those things you run into when your brain dies from coding too much. Common sense runs away and you are left alone in a room banging your head against a wall. I was trying to get WordPress to show some code if a page was not a page with an id of 5 nor a page with an id of 10. I was using the logical operator OR and this post showed the error of my ways. Boolean values break down to a simple true or false answer. It seems simple but if you throw some ‘not’ operators before those values, something happens to my brain and I get mega confused.
I’m sure this post will make little sense to most but I’m making the post so I don’t do this silly mistake again. I guess you could call it a selfish post.
Don’t do this:
Do this instead: