I think it’s best to use !(is_page(‘X’) || is_page(‘Y’)) logic for now.
@phantasmix suggested to use !is_page(array(X, Y)), it works as well and it’s shorter.
Thanks @phantasmix
You’re welcome 🙂
Thought I misunderstood your query and decided to remove my response.
Thanks Vlad Stratulat! Work correctly!
Btw. !A || !B is not the same as !(A || B). It is !(A && B).
Hm… you are right, Erik.
I’ve tested what you’re saying here http://sandbox.onlinephpfunctions.com/code/300a756d6d0cf0899b24ab4eced15b049b8f50be.
I don’t understand though, !A || !B
should return TRUE if at least one of this is TRUE so I’m expecting the same from !(A || B)
, where’s !(A && B)
should both be FALSE to return TRUE but it doesn’t.
Can you please explain?
Thank you!
It is NAND operator:
http://minich.com/education/wyo/acsl/images/digelectguide.gif
!(A || B) returns TRUE if both of them is FALSE.
Thanks a lot Erik!
Now I have to change the star rating for this plugin and read about this operators 🙂
Attention
For the De Morgan laws
!A || !B is equivalent to !( A && B)
and
!A && !B is equivalent to !(A || B)
See: https://en.wikipedia.org/wiki/De_Morgan%27s_laws