Query Woocommerce Child Categories from specific parent ID

If you want to run a query of child categories from a specific Parent category and pull it’s product category image.

One thought on “Query Woocommerce Child Categories from specific parent ID

  1. arshad

    Hi Thanks for sharing this its nice but ca i get the only child categories only not grand child ex.

    Shake (Main categories)

    -Banana (Child categories)
    –with ice cream (Grand Child categories)
    –without ice cream (Grand Child categories)

    -Mango (Child categories)
    –with ice cream (Grand Child categories)
    –without ice cream (Grand Child categories)

    so here i want only child categories of main categories showing only 2 categories
    Banana
    Mango
    so its possible plesae help

Comments are closed.