Fixing the frontpage products by editing the args of the wp_query product retrieval
authorLaury GvR <laury@gaslightmedia.com>
Wed, 22 Feb 2017 15:14:21 +0000 (10:14 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 22 Feb 2017 15:14:21 +0000 (10:14 -0500)
sections/front-page.php

index 3d524fa..417ddf1 100644 (file)
@@ -72,6 +72,7 @@
                                  'post_type' => 'product',
                                  'orderby' => 'menu_order',
                                  'order' => 'ASC',
+                                 'post_status' => 'published'
                             );
                             $products = new WP_Query( $args );
                             echo "<ul>";