WooCommerce – hide ‘Out of stock’ products

Content Views Pro helps you to show any WooCommerce products easily.
To hide out of stock products from the products list of a View:

Content Views Pro 5.6.0 and higher

In Filter Settings tab, select the Taxonomy (Categories, Tags...) checkbox
Under Filter by Taxonomy:
– Select Taxonomy: Visibility
– Select Terms: outofstock
– Operator: NOT IN

Content Views Pro - hide out of stock products WooCommerce

Content Views Pro 5.5.0.1 and before

Please use this shortcode:

[pt_view id="VIEW_ID" taxonomy="product_visibility" terms="outofstock" operator="NOT IN" reuse_tax_query=1]

(replace VIEW_ID with ID of your View)

Thank you,

Scroll to Top