From: Steve Sutton Date: Thu, 23 Jul 2015 19:52:22 +0000 (-0400) Subject: Block fetch method update X-Git-Tag: v1.2.1^0 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=9616086f0968b7effbd467c8cda7f4bca6a2b4c5;p=WP-Plugins%2Fglm-blocks.git Block fetch method update Update so the blocks can be unlimited. --- 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) {