I usually do this by getting data from database
$result = mysql_query("SELECT * FROM wp_terms JOIN wp_term_taxonomy
ON wp_term_taxonomy.term_id = wp_terms.term_id
WHERE wp_term_taxonomy.parent = ".$parent_cat_ID."
AND wp_term_taxonomy.taxonomy = 'product_cat'");
Related Posts:
- Display “add to cart” button on every listing in product category page?
- Get parrent category name
- Do not show sub categories in the loop on archive-product.php
- why get_the_post_thumbnail( the_ID()) echos extra post id
- Show the parent taxonomy by creating shortcode in woocommerce?
- How to get category and archive title?
- Get rid of WordPress category, tag and author archives?
- Retrieve Product category ‘NAME’ by product category ID – WooCommerce?
- get_categories for custom post type with a specific custom taxonomy attached
- How To Modify The Loop in archives.php To Have 11 Posts Per Page and CSS Styling
- What’s the URL for a category archive?
- Sort posts by tags in category pages
- Programmatically create product category and add thumbnail in woocommerce
- Create product category and keyword search form in woocommerce? [closed]
- How would you create a “weekly” archive?
- Root level category, tag, author and archive pages to work
- Use get_term_children to get the sub category of a parent category for the current post
- Hide uncategorized products from the shop page
- Are Custom Taxonomy Templates Possible?
- Remove word “Category” from WooCommerce product page [closed]
- I want exclude the particular category in sidebar
- Filtering search results
- WooCommerce change category url and product base
- Remove Archive Headline and Archive Intro Text fields on category and tag archive pages in WordPress Admin with Genesis framework
- Display only posts from referred category on date archive page
- Using widget logic I want to show only a widget on the archive page if there are no posts
- What type of page should i use? static page or category page? and what’s the difference? [closed]
- Output link to category from WP_Query loop of woocommerce products
- Creating archive pages for children categories
- How to get product count with respect to categories in WooComerce
- WordPress categories being called “archives” in google links. How to remove?
- conditional for sub category on archive page
- Sorting posts by season
- weekly archive for custom category
- Set post categories to include parents when setting child category
- Linking products to categories
- Warning: sizeof (): Parameter must be an array or an object that implements Countable, On products pages
- Omit specific product categories from WooCommerce shortcode
- Multiple Domain Names – One WP Install (non-Multisite) – Default Each Domain name to Product Category WooCommerce
- How to remove category titles?
- Category index featured image
- Hide woocommerce category name from specific pages
- need to add custom field in more products
- How to redefine the sorting of product categories by menu_order?
- How can I define a custom archive for childs of a specific category?
- Pagination is not working properly in Product Category/Tag pages
- How to recreate a copy of a product category in WooCommerce? [closed]
- Sorting category products not working
- add_rewrite_endpoint returns 404 on archives
- Multiple category archive page
- Custom archive.php: retrieve right post categories?
- Woocommerce custom category page with pagination [closed]
- Customize category page for different custom taxonomies
- Category archive is displaying all posts rather than the specific category
- How to Remove a Title from All Category and Tags Page?
- Filter WooCommerce archive pages by an additional category
- Custom tax_query filter not working for Woocommerce product categories
- How do order product categories – on a parent category page – in Woocommerce?
- display category list year wise in wordpress
- Woocommerce filter function not updating
- Remove any product that is featured from regular display loop [WooCommerce]
- Two Sections on Woocommerce Catergory Page [closed]
- Woocommerce search form with category select
- WordPress monthly archive category specific
- Archive filtering
- Show Secondary Sidebar on Category pages (archive)
- Rebuilding a Site: How to Show Several Category Posts in Woo Framework Theme?
- Add multiple orderby with pre get posts
- WooCommerce shared categories
- Displaying Single Product Page Parent and Child Category
- List of post categories only associated to another custom taxonomy
- Conditional label Woocommerce archive [unsolved]
- How to show given products only using product id array from specific category page in woocommerce
- WooCommerce REST API not returning the default products category
- How to show WooCommerce Categories on ‘shop’ page instead of products?
- Get WooCommerce product category list in functions.php
- Is there a reason to put a product in both the Child and Parent Categories?
- WordPress category title not update in navigation menu
- WooCommerce showing active product categories on single product page
- How to add excerpt and read more button to category archive page
- Display all posts from specific category
- Make category archives page in menu non-clickable
- Woocommerce product catalog, products with different description
- Custom Category Archive Pages
- set a parent category in a product woocommerce
- No results found for second level category
- How to display products with multiple conditions, product_id and category_id
- custom browse by
- How to get get_categories()’s ‘hide_empty’ argument to work with global year var in the archive template?
- get_the_terms_list output last child only
- Create monthly archive for parent category
- How to count the number of monthly archive?
- Conditional statements based on custom meta value in category archives
- woocommerce – products by category slug? [closed]
- How can I add a Categories page link to a menu? [closed]
- WooCommerce category display in custom page
- Get all categories
- Woocommerce Force the category choice before creating new product? [duplicate]
- Function to reference post meta in place of category Woocommerce
- Sort Category Archive pages and place sticky posts first