projects
/
WP-Themes
/
capstone.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bda926b
)
Fixing the frontpage products by editing the args of the wp_query product retrieval
author
Laury GvR
<laury@gaslightmedia.com>
Wed, 22 Feb 2017 15:14:21 +0000
(10:14 -0500)
committer
Laury GvR
<laury@gaslightmedia.com>
Wed, 22 Feb 2017 15:14:21 +0000
(10:14 -0500)
sections/front-page.php
patch
|
blob
|
history
diff --git
a/sections/front-page.php
b/sections/front-page.php
index
3d524fa
..
417ddf1
100644
(file)
--- 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 "<ul>";