The opposite of is_page()
will be ! is_page()
. In php the !
is used as negative, so ! is_page( 42 )
will means something like
if we are not on page ID 42, do something, in other words exclude page ID 42
The opposite of is_page()
will be ! is_page()
. In php the !
is used as negative, so ! is_page( 42 )
will means something like
if we are not on page ID 42, do something, in other words exclude page ID 42