WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Reverse of is_page

[Resolved] Reverse of is_page

  • 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)
  • 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') )

    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 ‘[Resolved] Reverse of is_page’ is closed to new replies.
Skip to toolbar