From 5dec806b5b185a9507cd9c5f79bdf7443495c6be Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Fri, 25 May 2018 15:45:41 -0400 Subject: [PATCH] Limit fp featured prods to 2 --- functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 3b78eda..8683fad 100644 --- 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', -- 2.17.1