From db585cc21b668b6f80e9932f5bd93b7401b56902 Mon Sep 17 00:00:00 2001 From: Dan Coulthard Date: Wed, 26 Nov 2014 13:22:30 +0000 Subject: [PATCH] paginate_links now uses global $wp_query --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 45a47af..5f7f3e0 100755 --- a/index.php +++ b/index.php @@ -27,7 +27,7 @@ 'base' => str_replace( 99999999, '%#%', esc_url( get_pagenum_link( 99999999 ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), - 'total' => $jobs->max_num_pages + 'total' => $wp_query->max_num_pages )); ?>