• Resolved parthatel

    (@parthatel)


    I can’t figure out why my pages don’t work. I’m using WordPress 2.6.2. I’ve set the settings at 12 posts per page (and I know I have more than 12 posts), but the pages at the bottom don’t appear, meaning I can’t go to the second page.

    I’m also using a query_post on the home page, but removing it doesn’t seem to help.

    Any solutions to fix this? I’ve tried using WP Page-Navi and Wp-Page Numbers, but both don’t display the second or third pages, so it has to be a wordpress problem.

    Any help is highly appreciated. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter parthatel

    (@parthatel)

    Edit: After adding the default WordPress Next and Previous code

    <?php next_posts_link('<span class="navforward"></span>') ?><?php previous_posts_link('<span class="navback"></span>') ?>

    and removed my query_posts

    <?php query_posts('cat=1&orderby=date&order=desc'); ?>

    I was able to get it go to the next page. After adding my query_posts back, it didn’t work…which mean the problem is in the query posts somewhere.

    Thread Starter parthatel

    (@parthatel)

    bump

    Thread Starter parthatel

    (@parthatel)

    second bump

    Thread Starter parthatel

    (@parthatel)

    As I was remaking my theme to see where the problem occurred, I found out that it happened because I had a query_posts in my sidebar. Removing the query_post would fix my issue, but is there any other alternative so that I won’t have to remove it from the sidebar?

    Thread Starter parthatel

    (@parthatel)

    All I did to fix this was put my sidebar to the top. That way, the sidebar query_posts gets rendered first, then the actual index page query_posts gets rendered. I think the pagnination depends on the last query_post??? Anyway, by putting the sidebar query posts first, it fixed the pagination at the bottom, but messed up the search at the top…I’m guessing the search depends on the first query post. So now I have another problem and I’ll just create another topic for it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Pages don’t work (Page 1, Page 2, etc…)’ is closed to new replies.