Can’t Display Empty Sub Categories
-
Hello, I am using the latest version of everything. Woo 3.5.4 and WP 5.0.3. I have a top level category with multiple sub-categories. If those sub-categories do not have inventory, they do not show. I have tried the Customizer, that does nothing. I have tried the answers in the forums such as adding the following to my child theme, all without success. I am using Virtue Premium as my theme. Any help is appreciated.
Code tried:
add_filter( ‘woocommerce_product_subcategories_hide_empty’, ‘hide_empty_categories’, 10, 1 );
function hide_empty_categories ( $hide_empty ) {
$hide_empty = FALSE;
// You can add other logic here too
return $hide_empty;
}add_filter( ‘woocommerce_product_subcategories_hide_empty’, ‘__return_false’);
The page I need help with: [log in to see the link]
The topic ‘Can’t Display Empty Sub Categories’ is closed to new replies.