From: Laury GvR Date: Tue, 21 Feb 2017 20:24:12 +0000 (-0500) Subject: No longer showing products on the front page that are private X-Git-Tag: v1.0.14^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=a535b4d7502ada46874b18f12abf8f332e893f0e;p=WP-Themes%2Fcapstone.git No longer showing products on the front page that are private --- 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' );