From a535b4d7502ada46874b18f12abf8f332e893f0e Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 21 Feb 2017 15:24:12 -0500 Subject: [PATCH] No longer showing products on the front page that are private --- parts/shop-cats-and-products.php | 1 + sections/front-page.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/parts/shop-cats-and-products.php b/parts/shop-cats-and-products.php index eacdb6c..9d09c81 100644 --- a/parts/shop-cats-and-products.php +++ b/parts/shop-cats-and-products.php @@ -23,6 +23,7 @@ ) ), 'post_type' => 'product', + 'post_status' => 'published', 'orderby' => 'menu_order', 'order' => 'ASC' ); diff --git a/sections/front-page.php b/sections/front-page.php index 699f302..a1f3c3a 100644 --- a/sections/front-page.php +++ b/sections/front-page.php @@ -36,6 +36,7 @@
$number, + 'post_status' => 'published', 'orderby' => 'menu_order', 'order' => 'ASC', 'hide_empty' => $hide_empty, @@ -72,6 +73,7 @@ ) ), 'post_type' => 'product', + 'post_status' => 'published', 'orderby' => 'menu_order', 'order' => 'ASC' ); -- 2.17.1