From beea5a57c9f0e4697afc453acc0cf7121cae3876 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Fri, 5 May 2017 15:15:56 -0400 Subject: [PATCH] ... made sure the get_trail_links filter iterates through more than the default 5 posts when it does a get_posts to get all the products --- functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index b58eb78..2843e4c 100644 --- a/functions.php +++ b/functions.php @@ -224,8 +224,9 @@ function is_post_type($type){ add_filter('glm-get-trail-links', function($member_id) { $products = get_posts( array( - 'post_status' => 'publish', - 'post_type' => 'product' + 'post_status' => 'publish', + 'post_type' => 'product', + 'posts_per_page' => -1 ) ); -- 2.17.1