From: Laury GvR Date: Fri, 25 May 2018 19:45:41 +0000 (-0400) Subject: Limit fp featured prods to 2 X-Git-Tag: v1.0.0^2~36 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=5dec806b5b185a9507cd9c5f79bdf7443495c6be;p=WP-Themes%2Fmurdicksmackinacfudge.git Limit fp featured prods to 2 --- 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',