• Hi,

    I use is_category( 2 ) || cat_is_ancestor_of( 2, get_query_var( ‘cat’ ) ) as Widget logic in the Category Sidebar for 1 year now. It worked perfectly before. Now it doesn′t do that anymore.
    It only works, if the parent category (2) is set.

    Did something change resp. break?

    Best regards and thank you in advance.
    Markus

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • What happened about this, I have the same:
    is_product_category( ‘hinges’ ) || cat_is_ancestor_of( 16, get_queried_object()->term_id )

Viewing 1 replies (of 1 total)
  • The topic ‘cat_is_ancestor_of does not work anymore’ is closed to new replies.