• Resolved peiqinglong

    (@peiqinglong)


    Greetings all! I’m stumped. I know I read this somewhere before, but can’t find it now. So I have conditional statements I’m using, and I want to exclude specific pages. What is the reverse of is_page or how would I write it so I can exclude certain pages? Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • koeln

    (@koeln)

    Which certain pages?
    You will get the reverse of a function with ! (is not)

    Kafkaesqui

    (@kafkaesqui)

    To expand upon koeln’s explanation:

    if( !is_page() )

    if( !is_page('not-this-page') )

    Thread Starter peiqinglong

    (@peiqinglong)

    Ahhh perfect! What I was looking for, I’ll give it a try and let everyone know how that works out!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Reverse of is_page’ is closed to new replies.