projects
/
WP-Themes
/
murdicksmackinacfudge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2066a89
)
Limit fp featured prods to 2
author
Laury GvR
<laury@gaslightmedia.com>
Fri, 25 May 2018 19:45:41 +0000
(15:45 -0400)
committer
Laury GvR
<laury@gaslightmedia.com>
Fri, 25 May 2018 19:45:41 +0000
(15:45 -0400)
functions.php
patch
|
blob
|
history
diff --git
a/functions.php
b/functions.php
index
3b78eda
..
8683fad
100644
(file)
--- a/
functions.php
+++ b/
functions.php
@@
-216,7
+216,8
@@
function front_featured_products() {
$query = new WP_Query( array(
'post_type' => 'product',
'post_status' => 'publish',
- 'posts_per_page' => -1 ,
+ 'posts_per_page' => 2,
+ 'limit' => 2,
'tax_query' => array( array(
'taxonomy' => 'product_visibility',
'field' => 'term_id',