Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

So my blog here http://www.page3sportz.com/ is showing content from the 2nd page on the homepage itself. The second page can also be seen at /page/2/ but for some reason I am not getting the pagination on the homepage.

Please advise on how to resolve this

Content of the navigation.php file

<?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 } }?>
share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.