In Woocommerce, I have several categories with subcategories. When in the category Loyalty or its child categories page, I just want to show the Loyalty and its child categories in the Categories Widget (Sidebar).
In the Shop page, Categories Widget should show all categories except Loyalty and its child categories.
Any help or guidance?