• hi,
    what i need is to display certain menu based the category and subcategory selection.
    by selecting the main category(girl) the menu is appeared. if i select any subcategory the menu is disappeared. also this issue appeared to product page.

    the code that i use is below:

    is_product() && has_term( ‘girl’, ‘product_cat’ ) || is_product_category( ’26’ ) || cat_is_ancestor_of( 263, get_queried_object()->term_id )

    can you assist me please.

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

  • The topic ‘display product category and all subcategories’ is closed to new replies.