Skip to content

Commit

Permalink
Don't set 'nopaging' to 'true' when querying for posts here. That wil…
Browse files Browse the repository at this point in the history
…l load all posts rather than just the number we need.
  • Loading branch information
Justin Tadlock committed Aug 27, 2012
1 parent 8ab6ce2 commit c3f49d1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions page-template-gallery.php
Expand Up @@ -27,7 +27,6 @@
<?php $loop = new WP_Query( <?php $loop = new WP_Query(
array( array(
'posts_per_page' => ( 'layout-1c' == theme_layouts_get_layout() ? 10 : 6 ), 'posts_per_page' => ( 'layout-1c' == theme_layouts_get_layout() ? 10 : 6 ),
'nopaging' => true,
'tax_query' => array( 'tax_query' => array(
array( array(
'taxonomy' => 'post_format', 'taxonomy' => 'post_format',
Expand Down Expand Up @@ -77,7 +76,6 @@
<?php $loop = new WP_Query( <?php $loop = new WP_Query(
array( array(
'posts_per_page' => ( 'layout-1c' == theme_layouts_get_layout() ? 10 : 6 ), 'posts_per_page' => ( 'layout-1c' == theme_layouts_get_layout() ? 10 : 6 ),
'nopaging' => true,
'tax_query' => array( 'tax_query' => array(
array( array(
'taxonomy' => 'post_format', 'taxonomy' => 'post_format',
Expand Down

0 comments on commit c3f49d1

Please sign in to comment.