From c2163dfabb535fb3d7f6f19f6e011d27a62f7fe1 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 10 Aug 2011 19:40:47 +0100 Subject: [PATCH] paging fix --- templates/loop-shop.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/loop-shop.php b/templates/loop-shop.php index 5633f9c47e8..4ee4002b97f 100644 --- a/templates/loop-shop.php +++ b/templates/loop-shop.php @@ -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();