Title: [Plugin: Widget Logic] Same widget on multiple sidebars
Last modified: August 20, 2016

---

# [Plugin: Widget Logic] Same widget on multiple sidebars

 *  [skylacking](https://wordpress.org/support/users/skylacking/)
 * (@skylacking)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-widget-logic-same-widget-on-multiple-sidebars/)
 * I have multiple Sidebars. is there anyway to use widget logic, to show the same
   widget on different sidebars?
 * I have 100 sidebars, that are linked to specific categories. They will have different
   widgets for their own custom menus, however I want them to also share the same
   widget, like, advertising, social plugin etc.
 * [http://wordpress.org/extend/plugins/widget-logic/](http://wordpress.org/extend/plugins/widget-logic/)

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

 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-widget-logic-same-widget-on-multiple-sidebars/#post-3068941)
 * I don’t think so, no. Could you just have one sidebar that’s persistent and appears
   above/below the others?
 *  Thread Starter [skylacking](https://wordpress.org/support/users/skylacking/)
 * (@skylacking)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-widget-logic-same-widget-on-multiple-sidebars/#post-3068987)
 * Hey thanks for the reponse. Issue was, I was going to have a lot of widgets, 
   and categories, was looking for a way to organize it in back end as well, since
   my current sidebars are assigned to categories, and sub categories, and I don’t
   think there is a condition to set if “is_subcategory” for widget logic…. unless
   there is?
 * I am going to have to use: So that my widget will be visible on page 10219, or
   if viewing category page books, any subcategory of books. Also, if viewing a 
   post in books category or subcategory.
 * is_page(10219) || is_category(array(‘books’,’books-2013′)) || (is_single( ) &&
   in_category(array(‘books’,’books-2013′)))
 * ‘books-2013’ is the subcategory of ‘books’
 * is there a way to not use arrays, so that I won’t have to keep editing array,
   when I add new categories.
 * I didn’t have any luck with the “post_is_in_descedant” I kept getting an error,
   saying call to undefined function.
 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-widget-logic-same-widget-on-multiple-sidebars/#post-3069007)
 * You can use get_term_children to get an array of categories, so you could do 
   something like in_category(get_term_children(5, ‘category’)). I’ve not tried 
   it, but that sounds convincing.
 *  Thread Starter [skylacking](https://wordpress.org/support/users/skylacking/)
 * (@skylacking)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-widget-logic-same-widget-on-multiple-sidebars/#post-3069023)
 * cool, will give it a shot

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

The topic ‘[Plugin: Widget Logic] Same widget on multiple sidebars’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [skylacking](https://wordpress.org/support/users/skylacking/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-widget-logic-same-widget-on-multiple-sidebars/#post-3069023)
 * Status: not resolved