# WooCommerce hide out of stock products

**URL:** <https://forum.pinegrow.com/t/woocommerce-hide-out-of-stock-products/9848>\
**Category:** WooCommerce\
**Created:** [October 4, 2024, 3:41pm UTC](https://forum.pinegrow.com/t/woocommerce-hide-out-of-stock-products/9848 "2024-10-04T15:41:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Riccarcharias](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/riccarcharias/32/4051_2.png) [@Riccarcharias](https://forum.pinegrow.com/u/Riccarcharias)\
**Post date:** [October 4, 2024, 3:41pm UTC](https://forum.pinegrow.com/t/woocommerce-hide-out-of-stock-products/9848/1 "2024-10-04T15:41:05Z")

</div>

Hey,

I want to display products of a certain category on a div in my WooCommerce Shop. I configured a custom query this does the job well. But it also displays products which are out of stock. I checked the option in the WooCommerce settings “Hide out of stock items from the catalog”.

Does anyone know, how to hide products which are out of stock in a custom query?

 ![Bildschirm­foto 2024-10-04 um 17.36.11](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/7/7b1dec82b91a4451df43a99edb30f1f86edf5a8e.png)

---

<div class="post-metadata">

**Author:** ![Riccarcharias](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/riccarcharias/32/4051_2.png) [@Riccarcharias](https://forum.pinegrow.com/u/Riccarcharias)\
**Post date:** [October 8, 2024, 5:25am UTC](https://forum.pinegrow.com/t/woocommerce-hide-out-of-stock-products/9848/2 "2024-10-08T05:25:05Z")

</div>

@matjaz @RobM any ideas? I Think this is a topic that could be interesting for many WooCommerce user

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [October 9, 2024, 8:00am UTC](https://forum.pinegrow.com/t/woocommerce-hide-out-of-stock-products/9848/4 "2024-10-09T08:00:43Z")

</div>

Hello @Riccarcharias

I’m definitely not a WooCommerce expert, so like I’ve been doing lately for topics I’m not familiar with, I consulted Google and asked AI (Claude 3.5) for some suggestions. Before I share them, I’d like us to test them together, so I invite you to reach out to me through support so I can pass them along and we can discuss the results you get.

What do you think?
