• Resolved sparklogix

    (@mybenson)


    I’ve used this plugin on many sites and with many different themes, but now all of a sudden, it’s not working. It doesn’t matter which page number you choose, it stays on page 1, even though the URL says you’re on a different page.

    The code I’m using in index.php is
    <?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?>

    I’ve seen two different codes and I’ve tried them both. I’ve Googled this but can’t seem to find a solution. The site in question is here, if that would help.

    Thanks so much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter sparklogix

    (@mybenson)

    By the way, it works on the category pages, and the code is exactly the same. So confused right now.

    are you using any sort of custom query_posts before your loop?

    Thread Starter sparklogix

    (@mybenson)

    Yes, I need to exclude a certain category from the main page:

    <?php query_posts('cat=-120');

    Is this causing it? What can I do to fix it but still exclude that category?

    Thanks.

    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts(array(
    	'cat' => '-120',
             'paged'=>$paged,
            ));
    ?>

    yup, that’s it. You must include pagination anytime you run a custom query

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: wp-page-numbers] Pagination not working – stays on pg 1’ is closed to new replies.