Remove Out-of-Stock Products from Filter Results

Advanced Filter Logic & Query Behavior
Updated Nov 8, 20262 min read

Sold-out products can frustrate shoppers, especially if they fill the first page. Remove out of stock product hides them from your product lists and from the filters. It is off by default.

Turn it on

  1. Go to Product Filters > Advance Settings.
  2. Set Remove out of stock product to On.
  3. Click Save Changes, then click Clear Cache on the same tab.
Remove out of stock product switch in the product filter settings

What changes

  • Your shop and category pages: sold-out products disappear, even when no filter is used.
  • The [products] shortcode: they disappear there too.
  • The stock filter: its “Out of Stock” choice is removed, because nothing would match it.

What does not change

  • Backorder products stay visible. Only products marked Out of stock are hidden.
  • Direct links still work. A shopper with the link can still open the product page.
  • Your products stay published. When a product is back in stock, it returns to your lists.

Hide them, or let shoppers decide?

You wantUse
Sold-out products gone for everyoneThis setting
Shoppers to chooseThe stock status filter
Sold-out products visible, to show your range or catch back-in-stock interestLeave this off

WooCommerce has a similar option under WooCommerce > Settings > Products > Inventory, called Out of stock visibility. Use that one if you want the whole site covered by a single WooCommerce setting.

If something looks wrong

  • A sold-out product still shows: clear your caching plugin’s cache, and check that the product’s status really is Out of stock.
  • Result counts look wrong: click Clear Cache under Advance Settings.