Title: [Plugin: Widget Logic] Excluding a page
Last modified: August 20, 2016

---

# [Plugin: Widget Logic] Excluding a page

 *  [theblogmaven](https://wordpress.org/support/users/theblogmaven/)
 * (@theblogmaven)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-widget-logic-excluding-a-page/)
 * What is the string to show the widget on the whole site *except* a certain page?
 * Thanks!
 * [http://wordpress.org/extend/plugins/widget-logic/](http://wordpress.org/extend/plugins/widget-logic/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-widget-logic-excluding-a-page/#post-2926037)
 * that’s one of the examples here
 * [http://wordpress.org/extend/plugins/widget-logic/other_notes/](http://wordpress.org/extend/plugins/widget-logic/other_notes/)
 *  [QD123](https://wordpress.org/support/users/qd123/)
 * (@qd123)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-widget-logic-excluding-a-page/#post-2926121)
 * Hello there,
 * I got one exception to work using:
 * !is_page(‘Selling’)
 * but how do I get two exceptions to work…. I tried
 * !is_page(‘Selling’, ‘Buying’)… but I am not a programmer so it didn’t work.
 *  Thread Starter [theblogmaven](https://wordpress.org/support/users/theblogmaven/)
 * (@theblogmaven)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-widget-logic-excluding-a-page/#post-2926123)
 * [@alanft](https://wordpress.org/support/users/alanft/) – is that something that
   works for posts too? I’m trying to make a widget show for everything except a
   specific post now…and it doesn’t seem to be working.
 *  [CBKat](https://wordpress.org/support/users/sohkat/)
 * (@sohkat)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-widget-logic-excluding-a-page/#post-2926124)
 * I could have sworn on an old site of mine (now deleted) that I was able to put:
 * !is_page(‘427′,’785′,’532’)
 * and this would work for the pages that matched the ID #, however, it is not working
   and I too am looking for a way to do this.
 *  [CBKat](https://wordpress.org/support/users/sohkat/)
 * (@sohkat)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-widget-logic-excluding-a-page/#post-2926125)
 * Hey, I figured it out by viewing: [http://codex.wordpress.org/Conditional_Tags](http://codex.wordpress.org/Conditional_Tags)
 * >  is_page( array( 42, ‘about-me’, ‘About Me And Joe’ ) )
   >  Returns true when 
   > the Pages displayed is either post ID = 42, or post_name is “about-me”, or 
   > post_title is “About Me And Joe”. is_page( array( 42, 54, 6 ) ) Returns true
   > when the Pages displayed is either post ID = 42, or post ID = 54, or post ID
   > = 6.
 * Just make sure you put the ! before the “is_page” otherwise it won’t work
 * So, for you, you should be able to put:
 * > !is_page( array( ‘buying’, ‘selling’ ) )
 *  [QD123](https://wordpress.org/support/users/qd123/)
 * (@qd123)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-widget-logic-excluding-a-page/#post-2926138)
 * Thanks SOHKat,
 * You da man!
 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-widget-logic-excluding-a-page/#post-2926139)
 * [@theblogmaven](https://wordpress.org/support/users/theblogmaven/)
 * [http://codex.wordpress.org/Conditional_Tags#A_Single_Post_Page](http://codex.wordpress.org/Conditional_Tags#A_Single_Post_Page)
 * eg !is_single( ’17’ ) or !is_single( ‘beef-stew’) would work

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘[Plugin: Widget Logic] Excluding a page’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/widget-logic_c8dde5.svg)
 * [Widget Logic](https://wordpress.org/plugins/widget-logic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/widget-logic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/widget-logic/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-logic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-logic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-logic/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [alanft](https://wordpress.org/support/users/alanft/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-widget-logic-excluding-a-page/#post-2926139)
 * Status: not resolved