You can try this.
$args = array(
'parent' => 100, // id of the direct parent
'hide_empty' => false,
);
$cats = get_terms( 'product_cat', $args );
foreach( $cats as $cat ) {
// do your loop stuff here
}
Here is more information on this function and additional arguments you can use.
Related Posts:
- WP E-commerce: Showing 3 random products from current category when viewing product
- WordPress and magic quotes
- Reposition WooCommerce breadcrumb outside of wrapper content
- WordPress URL Rewrite not working
- Displaying a WooCommerce product via PHP
- Woocommerce -How to set product regular price default
- How to get the original price of the product in woocommerce?
- How To Customize Position of »add to cart« of WooCommerce on Product Page [closed]
- WordPress widget in custom theme
- Bulk Image upload and one image for each post?
- Woocommerce price including tax with formatting from options
- woocommerce and is_user_logged_in() if not redirect to homepage
- Woocommerce Custom CSV export
- WooCommerce – Fixed quantity of a product [closed]
- WP_cron won’t trigger my action
- How to create a custom category of wordpress admin
- Adding a div at the bottom of a sidebar
- How to run JS, PHP and etc. inside WP post?
- Working with wordpress plugin and theme templates structures
- WordPress: Access a plugin from within a theme
- WordPress plugin/code to hide all things related of a user from the public
- How can I pass a custom/dynamic product to the Woocommerce cart?
- How to make products with no cost in WooCommerce
- Large Woocommerce Site (83,000 items), What Can I Do? [closed]
- showing 2 prices wholesale and normal
- How can I hide that I Use WordPress (with W3 Total Cache)
- Woocommerce Show Single Product on Homepage
- WooCommerce Tabs [closed]
- WordPress add_rewrite_rules for custom URLs ending in .html
- How to solve Woocommerce Memory Limit
- Should i use the wordpress Options table or to create database table..?
- Why doesn’t PhotoSmash plugin play well with wp_query?
- Woocommerce getting top level category parent and make all sub categories have the same template and menu
- feedburner plugin for WP 3.5
- Display additional page templates and a sidebar on plugin activation
- How do I attach an invoice PDF to an email in the Dukapress plugin for WordPress?
- Make separate text boxes for separate WordPress Custom Fields
- How to get content on a blank basket/cart page in a custom theme with woocommerce
- Creating a WordPress addon for ContactForm7 submission (.XML file export)
- divide custom field values in div every two values
- WordPress plugin creating sidebar on the theme/page
- WordPress and magic quotes
- How to get WordPress Adminmenu items?
- How To Customize Position of »add to cart« of WooCommerce on Product Page [closed]
- TheCartPress plugin – Make every item in store unique
- Simple tree display of WordPress menu
- WordPress Pages into Sections edit.php PHP hack
- WordPress Plugin Receive a Link
- WordPress: Create A Widget to Accompany Plugin
- PHP Syntax getting PHP terms
- Get Products within Current Product Category
- is it possible to create cart functionality without woocommerce? [closed]
- what is %variable% in a wordpress plugin? [closed]
- Display child page content of a specific parent on home page
- .html end of URl affected to SEO?
- Comapare get_user_meta value
- How to use custom Javascript code inside a plugin?
- Calculate days between two custom field value dates
- How to add a rewrite endpoint to unattached media?
- How can get all users by current user meta?
- Make plugin php file called directly aware of WordPress?
- How to use printf to output two links?
- Using rules in Posts
- Sort posts in a specific way
- How to hide post in WordPress
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- Why is it important to check for isset and is_array before checking in_array in this example?
- How can I get “Previous” and “Next” to show in the navigation besides the links?
- How to turn each phone number within the $content to a telephone link?
- get_header_image() causes “Prioritize visible content” issue in Page Speed Insights
- Notice: Trying to get property of non-object
- Alphabetically Ordered Category in WordPress
- Add New Text Box To WordPress Twenty Seventeen Header
- WordPress homepage setup not working on first load
- How to reference PHP in Javascript
- Creating custom page template from existing PHP site
- url_to_postid returns 0
- Using CFDB7 vs Custom MySQL Database [closed]
- change default RSS feed URL
- Get the id of all images in a post
- Shortcode to log user into current URL
- Shortcode function doesnt work without caption
- Adding a simple Javascript file with a plugin
- How do i add slugs to a URL, but still redirecting to the same page
- wordpress site – using custom database and PHP
- Get featured image with custom size outside WordPress
- Fatal errors to undefined function in theme 404.php file [closed]
- How to use the checked() function to check for a non-empty var
- Noindex subscriber author page
- Split site title and apply different classes
- WordPress custom post type image in RSS
- How to add post thumbnail dynamically using Jquery?
- How to add/change (woocommerce) product tab icon
- WordPress redirects to old login after migration
- Action Hook Inside WordPress Plugin Shortcode
- Displaying content on posts page based on category
- How can I display Custom Post type Custom Columns and its Content in a Dashboard Widget?
- cURL error 6 on news area, and also won’t auto update
- How to display the content only to the allowed IP address [closed]
- How do I remove duplicate users from two merged WP_User_Query objects?