From 9616086f0968b7effbd467c8cda7f4bca6a2b4c5 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 23 Jul 2015 15:52:22 -0400 Subject: [PATCH] Block fetch method update Update so the blocks can be unlimited. --- models/block.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/models/block.php b/models/block.php index e171f89..cda8830 100644 --- a/models/block.php +++ b/models/block.php @@ -193,9 +193,10 @@ class glm_models_block { global $wpdb, $wp; $args = array( - 'post_type' => GLM_BLOCK_POST_TYPE, - 'orderby' => 'menu_order post_title', - 'order' => 'asc' + 'posts_per_page' => -1, + 'post_type' => GLM_BLOCK_POST_TYPE, + 'orderby' => 'menu_order post_title', + 'order' => 'asc' ); $blocks = get_posts($args); foreach ($blocks as $block) { -- 2.17.1