Automatically add product_categories to nav_menu
put this on your functions.php and then call the function in whatever page desired. this code is prepare to use css. if (! function_exists(‘menu_categories’)) { function menu_categories(){ $cat_args = array( ‘orderby’ => ‘name’, ‘order’ => ‘asc’, ‘hide_empty’ => true); $cats = get_terms( ‘product_cat’, $cat_args ); ?> <h1>Categories</h1><?php foreach ($cats as $key => $cat): if ($cat->parent … Read more