Title: [Plugin: Widget Logic] Triple &quot;OR&quot; statement problem
Last modified: August 19, 2016

---

# [Plugin: Widget Logic] Triple "OR" statement problem

 *  Resolved [azazure](https://wordpress.org/support/users/azazure/)
 * (@azazure)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-widget-logic-triple-or-statement-problem/)
 * I can’t get the third condition to apply in the following statement:
 * is_page(14) || is_category(array(11,12)) || (is_single() && in_category(array(
   11,12)))
 * The first two conditions apply just fine. Any ideas? Thanks.

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

 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-widget-logic-triple-or-statement-problem/#post-2020543)
 * Can you remove `is_single`? For a post to be tested against `in_category` it 
   needs to be a single, right?
 * Ref: [http://codex.wordpress.org/Function_Reference/in_category](http://codex.wordpress.org/Function_Reference/in_category)
 *  Thread Starter [azazure](https://wordpress.org/support/users/azazure/)
 * (@azazure)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-widget-logic-triple-or-statement-problem/#post-2020601)
 * Thank you for responding, it was my fault. I have the same widget in both the
   right sidebar and the right inner sidebar and I was editing the wrong one. D’oh!
   Never do this stuff when you’re tired and in a hurry.
 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-widget-logic-triple-or-statement-problem/#post-2020630)
 * If you would please mark this thread as “resolved” (drop-down menu in the right
   column) it would be appreciated. Helps everyone keep better track of whose issues
   are still outstanding. Thanks!

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

The topic ‘[Plugin: Widget Logic] Triple "OR" statement problem’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-widget-logic-triple-or-statement-problem/#post-2020630)
 * Status: resolved