• https://www.averageparent.com
    Select a category then go to bottom of page. Creates page numbers, but when click on a page number (2,3,4,etc.), goes back to home page.
    Code:

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser. Or use pastebin.com instead. ]

    <?php get_header() ?>
    <div id="mainCol">
    <div id="content">
         <?php if (have_posts()) : ?>
                   <?php while (have_posts()) : the_post(); ?>
                   <div class="archiveBox">
                             <a>"><h2><?php the_title() ?></h2></a>
                             <p><span class="author"><?php the_author() ?></span>??<?php the_time('l, F j, Y') ?></p>
                             <p><?php the_excerpt() ?></p>
                   </div>
                   <?php $count++ ?>
                   <?php endwhile; ?>
         <?php endif; ?>
    
    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
    </div>
    </div>
    <?php include (TEMPLATEPATH . '/rightCol.php'); ?>
    <?php get_footer() ?>

    https://www.ads-software.com/extend/plugins/wp-pagenavi/

  • The topic ‘[Plugin: WP-PageNavi] wp_pagenavi not working’ is closed to new replies.