paging fix

This commit is contained in:
Mike Jolley 2011-08-10 19:40:47 +01:00
parent fb2c5c5d05
commit c2163dfabb
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ $loop = 0;
if (!isset($columns) || !$columns) $columns = apply_filters('loop_shop_columns', 4);
if (!isset($per_page) || !$per_page) $per_page = apply_filters('loop_shop_per_page', get_option('posts_per_page'));
if ($per_page > get_option('posts_per_page')) query_posts( array_merge( $wp_query->query, array( 'posts_per_page' => $per_page ) ) );
if ($per_page !== get_option('posts_per_page')) query_posts( array_merge( $wp_query->query, array( 'posts_per_page' => $per_page ) ) );
ob_start();