Title: Can&#8217;t Display Empty Sub Categories
Last modified: January 25, 2019

---

# Can’t Display Empty Sub Categories

 *  Resolved [inkform](https://wordpress.org/support/users/inkform/)
 * (@inkform)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/cant-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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcant-display-empty-sub-categories%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [inkform](https://wordpress.org/support/users/inkform/)
 * (@inkform)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/cant-display-empty-sub-categories/#post-11149121)
 * Anyone else experiences this, or have a work-around?
 *  Plugin Support [John Coy a11n](https://wordpress.org/support/users/johndcoy/)
 * (@johndcoy)
 * Automattic Happiness Engineer
 * [7 years, 3 months ago](https://wordpress.org/support/topic/cant-display-empty-sub-categories/#post-11335438)
 * Hi [@inkform](https://wordpress.org/support/users/inkform/)
 * Thanks for reaching out to us! I edited the shop page under **Appearance > Customize
   > WooCommerce > Product Catalog** and I set it to show categories. I then added
   the same snippet using the [Code Snippets](https://wordpress.org/plugins/code-snippets/)
   plugin:
 * `add_filter( 'woocommerce_product_subcategories_hide_empty', '__return_false');`
 * I now see empty categories on the shop page.
 *  [3 Sons Development](https://wordpress.org/support/users/3sonsdevelopment/)
 * (@3sonsdevelopment)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/cant-display-empty-sub-categories/#post-11362901)
 * Hi [@inkform](https://wordpress.org/support/users/inkform/),
 * We haven’t heard back from you in a while, so I’m going to close this thread 
   out. If you still have problems, please feel free to come back and open a new
   topic.
 * Take care

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Can’t Display Empty Sub Categories’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [3 Sons Development](https://wordpress.org/support/users/3sonsdevelopment/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/cant-display-empty-sub-categories/#post-11362901)
 * Status: resolved