Viewing 4 replies - 1 through 4 (of 4 total)
  • I don’t think so, no. Could you just have one sidebar that’s persistent and appears above/below the others?

    Thread Starter skylacking

    (@skylacking)

    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.

    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

    (@skylacking)

    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.