From: Laury GvR Date: Wed, 22 Feb 2017 15:14:21 +0000 (-0500) Subject: Fixing the frontpage products by editing the args of the wp_query product retrieval X-Git-Tag: v1.0.16^2~4 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=791bd0b6de0255aa9cde534be30ec796712eba94;p=WP-Themes%2Fcapstone.git Fixing the frontpage products by editing the args of the wp_query product retrieval --- diff --git a/sections/front-page.php b/sections/front-page.php index 3d524fa..417ddf1 100644 --- a/sections/front-page.php +++ b/sections/front-page.php @@ -72,6 +72,7 @@ 'post_type' => 'product', 'orderby' => 'menu_order', 'order' => 'ASC', + 'post_status' => 'published' ); $products = new WP_Query( $args ); echo "