Title: How to use hide_empty?
Last modified: March 23, 2018

---

# How to use hide_empty?

 *  Resolved [ryochan819](https://wordpress.org/support/users/ryochan819/)
 * (@ryochan819)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/how-to-use-hide_empty/)
 * Hi I want to make a list that shows product by random order and hide out of stock
   product.
 * The random works but I can still see out of stock product on the list. Did I 
   put it wrong? Below is the shortcodes I used:
 * [recent_products orderby=”rand” order=”rand” hide_empty=”true”]
    -  This topic was modified 8 years, 1 month ago by [ryochan819](https://wordpress.org/support/users/ryochan819/).

Viewing 1 replies (of 1 total)

 *  [con](https://wordpress.org/support/users/conschneider/)
 * (@conschneider)
 * Engineer
 * [8 years, 1 month ago](https://wordpress.org/support/topic/how-to-use-hide_empty/#post-10108376)
 * Howdy,
 * The hide_empty addresses taxonomies. It hides empty categories and such. You 
   can probably simply use this instead: [http://cld.wthms.co/xBJWgd](http://cld.wthms.co/xBJWgd)
 * Kind regards,

Viewing 1 replies (of 1 total)

The topic ‘How to use hide_empty?’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [con](https://wordpress.org/support/users/conschneider/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/how-to-use-hide_empty/#post-10108376)
 * Status: resolved