Title: [Plugin: Widget Logic] Problem with &amp;&amp;
Last modified: August 20, 2016

---

# [Plugin: Widget Logic] Problem with &&

 *  Resolved [Repka](https://wordpress.org/support/users/repka/)
 * (@repka)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-widget-logic-problem-with/)
 * Hello,
 * I use code
    `is_home() && is_category()`
 * and it doesn’t work.
 * But works separately:
    `is_home()` or `is_category()`
 * What is wrong?
 * [http://wordpress.org/extend/plugins/widget-logic/](http://wordpress.org/extend/plugins/widget-logic/)

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

 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-widget-logic-problem-with/#post-2982115)
 * unless your home page is also a category page (which I’m not sure is even possible),
   that’s never going to be true.
 * if what you want is it to be true when it is_home OR it is_category, then use
   OR instead, ||
 * then the widget will appear when the showing page is your home or when it is 
   a category
 *  Thread Starter [Repka](https://wordpress.org/support/users/repka/)
 * (@repka)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-widget-logic-problem-with/#post-2982223)
 * **alanft**,
 * Thank you.

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

The topic ‘[Plugin: Widget Logic] Problem with &&’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Repka](https://wordpress.org/support/users/repka/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-widget-logic-problem-with/#post-2982223)
 * Status: resolved