Pagination problem

Latest Reply from Ells at 2014-12-20 13:08:16 Solution
Hi,
I have a problem with pagination on tags and categories (on home page is everything ok). When I click on next page, nothing happens and I stuck on first page. Is something wrong with css or it should be from Wordpress actualization? On navigation.php it looks like this:

<?php global $SMTheme; ?>
<?php if (!$SMTheme->get( 'layout', 'dpagination' )) { ?>
<div class='pagination classic'>
<?php
global $wp_query;
$big = 999999999;
echo paginate_links( array(
'base' => str_replace( $big, '%#%', get_pagenum_link( $big ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var('paged') ),
'total' => $wp_query->max_num_pages
) );
?>
</div>

<?php } else {
$currentpage=max( 1, get_query_var('paged') );
if ($wp_query->max_num_pages > $currentpage) {
?>
<div class='pagination'>
<a class="nextpage" alt='<?php echo ($currentpage+1) ?>' href='<?php echo get_pagenum_link($currentpage+1) ?>'><?php echo $SMTheme->_( 'nextpage' ); ?></a>
</div>
<?php } }?>

Thank you for your reply, I'm really depresed. :D
My blog: http://ells.cz/
I resolved it - Wordpress and his actualization... I hope compatibility will be allright as soon as possible. :)

Leave a reply

Add codeAdd image