Title: [Plugin: Widget Logic] Help with widget statement
Last modified: August 19, 2016

---

# [Plugin: Widget Logic] Help with widget statement

 *  [powerkor](https://wordpress.org/support/users/powerkor/)
 * (@powerkor)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-widget-logic-help-with-widget-statement/)
 * I am trying to figure out how to limit a widget to 2 parts of my site:
 * 1 – a ‘fashion’ page, which I can do
 * but this one, isn’t working, I need help with it.
 * 2- a single post that’s category is fashion
 * here is the statement I am using. The is_page() works, but the in_category does
   not.
 * is_page(‘fashion’) || (is_single() && in_category(‘fashion’))
 * I am trying to do a !in_category(‘fashion’) for those widgets that are only suppose
   to show when its not a fashion page and in_category(‘fashion’) when it is a fashion
   page.
 * Please help, I have no idea what Im doing wrong
 * [http://wordpress.org/extend/plugins/widget-logic/](http://wordpress.org/extend/plugins/widget-logic/)

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

 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-widget-logic-help-with-widget-statement/#post-989383)
 * your code looks good to me. no idea why that wouldn’t be working. have you checked
   the obvious things in the [http://wordpress.org/extend/plugins/widget-logic/faq/](http://wordpress.org/extend/plugins/widget-logic/faq/)?
 * if ‘fashion’ isn’t working, try using the category ID instead.
 *  Thread Starter [powerkor](https://wordpress.org/support/users/powerkor/)
 * (@powerkor)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-widget-logic-help-with-widget-statement/#post-989480)
 * Yeah, I’ve tried that… I just found different plugin that does the same thing,
   but works. So thanks for your help.
 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-widget-logic-help-with-widget-statement/#post-989496)
 * oh well that’s good.
 * i wish i knew why it wasn’t working for you though 🙁

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

The topic ‘[Plugin: Widget Logic] Help with widget statement’ is closed to new replies.

 * 3 replies
 * 2 participants
 * Last reply from: [alanft](https://wordpress.org/support/users/alanft/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-widget-logic-help-with-widget-statement/#post-989496)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
