• Resolved nemo-maritime

    (@nemo-maritime)


    The issue I am having is that if I go to my main page, to see the main list of posts, the first set will show up, but if I try to go to “page 2”, or “older” then it still shows the first page posts.

    The most recent posts, 10 as I have it set up, all show up on different pages that are supposed to show older posts. When I click on page 2, or page 3 (I use WP-PageNavi), or “older posts” when I turn WP-PageNavi off, it still shows the same posts on each page. The url of the site changes from example.com to example.com/page/2/ and so on, but the same posts show up. I have tried deactivating all of the plugins for my site, but the issue still persists.

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter nemo-maritime

    (@nemo-maritime)

    And this would be in the source code of the site or the index file or some other file?

    I looked into the source code of the site, when its loaded, but dont see anything there, so I am assuming I am wrong as that would/should not be in the source code, unless I’m just confused. At any rate, its not in the source.

    Also, I had anouncements turned on for one of the posts, but that is not the issue either as I have tried turning it off and then on. Plus it all works for other themes as it should when I click “older posts” or “page 1, 2, or 3” or whatever page of posts.

    Thread Starter nemo-maritime

    (@nemo-maritime)

    Ahhhh some good news. So I went into the themes index.php file and I pasted over the original themes index.php content. That fixed the issue. Along the line of messing with it, I must have changed something that I should not have and it screwed everything up. I am now going over the index.php file to see what it is that I changed and see if changing that part will bring everything back. Heres hoping, was going insane with another issue, again ; )

    Edit: Duh!!!! You were right t31os, I had the,

    <?php
       if (is_home()) {
          query_posts("cat=-45, -119");
       }
    ?>

    In my index.php file to block out the categories I did not want on there. Thanks a billion for giving me a direction. If that code does not work, what the heck am I supposed to use to exclude the categories out then? Probably should start another thread for this one

    Thread Starter nemo-maritime

    (@nemo-maritime)

    Got it! Had help from stvwlf. He gave me the following code that fixed it:

    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
          query_posts("cat=-45,-119&paged=$paged"); ?>

    Thanks to all of you for your help, especially t31os for getting me close to the issue.

    Nice to see you posted the solution, will serve to help anyone else with the same problem(s).

    Glad you got it all working… ??

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Same posts from my homepage are on all of my different pages’ is closed to new replies.