Merge pull request #16 from bmsdan/master
paginate_links now uses global $wp_query
This commit is contained in:
commit
308f2b7506
|
@ -27,7 +27,7 @@
|
||||||
'base' => str_replace( 99999999, '%#%', esc_url( get_pagenum_link( 99999999 ) ) ),
|
'base' => str_replace( 99999999, '%#%', esc_url( get_pagenum_link( 99999999 ) ) ),
|
||||||
'format' => '?paged=%#%',
|
'format' => '?paged=%#%',
|
||||||
'current' => max( 1, get_query_var('paged') ),
|
'current' => max( 1, get_query_var('paged') ),
|
||||||
'total' => $jobs->max_num_pages
|
'total' => $wp_query->max_num_pages
|
||||||
));
|
));
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue