Title: Widget logic &#8211; question
Last modified: August 22, 2016

---

# Widget logic – question

 *  [SGTEAM](https://wordpress.org/support/users/sgteam/)
 * (@sgteam)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/widget-logic-question-1/)
 * Helo, i have problem s Widget logic.
 * I have category A and there are post 1,2,3,4,5 and category B with post 6,7,8…..
 * How i show menu in sidebaru for category A and all post (which are in category
   A) and category B?
 * Thank you.
 * [https://wordpress.org/plugins/widget-logic/](https://wordpress.org/plugins/widget-logic/)

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

 *  [teclive](https://wordpress.org/support/users/teclive/)
 * (@teclive)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/widget-logic-question-1/#post-5823850)
 * Try this code, where ‘A’ and ‘B’ would be the actual category ID#
 * is_category(A,B) || (is_single() && in_category(A,B))
 *  [pajackson60](https://wordpress.org/support/users/pajackson60/)
 * (@pajackson60)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/widget-logic-question-1/#post-5823886)
 * I installed Widget Logic but can’t get it to work properly. It definitely removed
   the widget from the page I didn’t want it on, but it still doesn’t show on the
   correct page. Now in place of that widget it shows “archives” and “Meta” widgets.
 * My site is [http://localtexasfoundation.org/](http://localtexasfoundation.org/)
   and I want the “Donors” widget to show only on “Our Supporters” page. I don’t
   want the archives and meta widgets at all.
 * I appreciate any help you can offer.
 * Thanks!

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

The topic ‘Widget logic – question’ 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
 * 3 participants
 * Last reply from: [pajackson60](https://wordpress.org/support/users/pajackson60/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/widget-logic-question-1/#post-5823886)
 * Status: not resolved