... made sure the get_trail_links filter iterates through more than the default 5...
authorLaury GvR <laury@gaslightmedia.com>
Fri, 5 May 2017 19:15:56 +0000 (15:15 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 5 May 2017 19:15:56 +0000 (15:15 -0400)
functions.php

index b58eb78..2843e4c 100644 (file)
@@ -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
         )
     );