Check if the page is paginated so not to display the pagination bar if not.
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
parent
e318666211
commit
3ad8f27036
|
@ -2,16 +2,18 @@
|
|||
|
||||
function comicpress_pagination() {
|
||||
global $post, $wp_query;
|
||||
if(function_exists('wp_pagenavi')) { ?>
|
||||
<div id="wp-paginav">
|
||||
if (is_paged()) {
|
||||
if(function_exists('wp_pagenavi')) { ?>
|
||||
<div id="wp-paginav">
|
||||
<?php wp_pagenavi(); ?>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div id="pagenav">
|
||||
<div class="pagenav-right"><?php previous_posts_link('Newer Entries ↑') ?></div>
|
||||
<div class="pagenav-left"><?php next_posts_link('↓ Previous Entries') ?></div>
|
||||
<div id="pagenav">
|
||||
<div class="pagenav-right"><?php previous_posts_link('Newer Entries ↑') ?></div>
|
||||
<div class="pagenav-left"><?php next_posts_link('↓ Previous Entries') ?></div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<?php }
|
||||
</div>
|
||||
<?php }
|
||||
}
|
||||
} ?>
|
||||
|
|
Loading…
Reference in New Issue