{"id":2738,"date":"2018-01-07T20:07:18","date_gmt":"2018-01-07T20:07:18","guid":{"rendered":"https:\/\/docs.contentviewspro.com\/?p=2738"},"modified":"2023-12-27T09:02:54","modified_gmt":"2023-12-27T09:02:54","password":"","slug":"woocommerce-hide-stock-products","status":"publish","type":"docs","link":"https:\/\/contentviewspro.com\/documentation\/article\/woocommerce-hide-stock-products\/","title":{"rendered":"WooCommerce \u2013 hide &#8216;Out of stock&#8217; products"},"content":{"rendered":"<p>Content Views Pro helps you to show any WooCommerce products easily.<br \/>\nTo hide out of stock products from the products list of a View:<\/p>\n<h2>Content Views Pro 5.6.0 and higher<\/h2>\n<p>In Filter Settings tab, select the <code>Taxonomy (Categories, Tags...)<\/code> checkbox<br \/>\nUnder Filter by Taxonomy:<br \/>\n\u2013 Select Taxonomy: <code>Visibility<\/code><br \/>\n\u2013 Select Terms: <code>outofstock<\/code><br \/>\n\u2013 Operator: <code>NOT IN<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2018\/01\/Content-Views-Pro-hide-out-of-stock-products-WooCommerce.png\" alt=\"Content Views Pro - hide out of stock products WooCommerce\" width=\"777\" height=\"477\" class=\"alignnone size-full wp-image-3682\" srcset=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2018\/01\/Content-Views-Pro-hide-out-of-stock-products-WooCommerce.png 777w, https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2018\/01\/Content-Views-Pro-hide-out-of-stock-products-WooCommerce-300x184.png 300w, https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2018\/01\/Content-Views-Pro-hide-out-of-stock-products-WooCommerce-768x471.png 768w\" sizes=\"auto, (max-width: 777px) 100vw, 777px\" \/><\/p>\n<h2>Content Views Pro 5.5.0.1 and before<\/h2>\n<p>Please use this shortcode:<\/p>\n<pre style=\"font-size:13px\">\n&#91;pt_view id=\"VIEW_ID\" taxonomy=\"product_visibility\" terms=\"outofstock\" operator=\"NOT IN\" reuse_tax_query=1&#93;\n<\/pre>\n<p>(replace <strong>VIEW_ID<\/strong> with ID of your View)<\/p>\n<p>Thank you,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8230;) checkbox Under Filter by Taxonomy: \u2013 Select Taxonomy: Visibility \u2013 Select Terms: outofstock \u2013 Operator: NOT &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/contentviewspro.com\/documentation\/article\/woocommerce-hide-stock-products\/\"> <span class=\"screen-reader-text\">WooCommerce \u2013 hide &#8216;Out of stock&#8217; products<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"doc_category":[50],"doc_tag":[20],"class_list":["post-2738","docs","type-docs","status-publish","hentry","doc_category-woocommerce","doc_tag-woocommerce"],"year_month":"2026-09","word_count":87,"total_views":"2","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin1","author_nicename":"admin1","author_url":"https:\/\/contentviewspro.com\/documentation\/author\/admin1\/"},"doc_category_info":[{"term_name":"WooCommerce","term_url":"https:\/\/contentviewspro.com\/documentation\/cats\/woocommerce\/"}],"doc_tag_info":[{"term_name":"WooCommerce","term_url":"https:\/\/contentviewspro.com\/documentation\/tags\/woocommerce\/"}],"_links":{"self":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/2738","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/comments?post=2738"}],"version-history":[{"count":1,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/2738\/revisions"}],"predecessor-version":[{"id":5370,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/2738\/revisions\/5370"}],"wp:attachment":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/media?parent=2738"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_category?post=2738"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=2738"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}