We can use get_terms to get subcategories of any given category in WordPress. This will work with WooCommerce and any other custom taxonomy. Here I will create an utility function to show subcategories wherever we need. I will also create a shortcode to show it from post/page editor. Utility Function… Read More »