From: Laury GvR Date: Fri, 5 May 2017 19:15:56 +0000 (-0400) Subject: ... made sure the get_trail_links filter iterates through more than the default 5... X-Git-Tag: v1.0.0^2~78 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=beea5a57c9f0e4697afc453acc0cf7121cae3876;p=WP-Themes%2Fmichigantrailmaps.git ... 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 --- 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 ) );