pagination fix *again*
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
parent
0a939caf88
commit
ef9397b04a
|
@ -2,12 +2,8 @@
|
||||||
|
|
||||||
function comicpress_pagination() {
|
function comicpress_pagination() {
|
||||||
global $post, $wp_query;
|
global $post, $wp_query;
|
||||||
$paged = intval(get_query_var('paged'));
|
if(function_exists('wp_pagenavi')) { ?>
|
||||||
if(function_exists('wp_pagenavi') && !empty($paged)) { ?>
|
<?php wp_pagenavi('<div id="wp-paginav">', '<div class="clear"></div></div>'); ?>
|
||||||
<div id="wp-paginav">
|
|
||||||
<?php wp_pagenavi(); ?>
|
|
||||||
<div class="clear"></div>
|
|
||||||
</div>
|
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<div id="pagenav">
|
<div id="pagenav">
|
||||||
<div class="pagenav-right"><?php previous_posts_link('Newer Entries ↑') ?></div>
|
<div class="pagenav-right"><?php previous_posts_link('Newer Entries ↑') ?></div>
|
||||||
|
|
Loading…
Reference in New Issue