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.