• Hi,

    In the home page (not browsing the categories, there works) the /page/2 link goes to a page with the very same posts as the home page, and also page/3 does.

    Any idea of what’s going on? I have some plugins installed, the site is https://www.alterna2.com.

    Thx everyone

Viewing 2 replies - 1 through 2 (of 2 total)
  • jcornide,

    I have the exact same problem. You seem to have fixed the problem. Please post the solution. (Then mark the issue resolved…please.)

    After contacting jcornide, I found the solution that he used to solve the problem. This is what he wrote:

    Yes, I solved the problem with the page 2. Maybe you are excluding one category in the home of your blog? If yes, you maybe be using something like:
    query_posts( “cat=-3”);

    Well, I changed that for this:
    query_posts( $query_string . “&cat=-3”);

    And now works ??

    Hope this will help.

    The solution I used was a If-Else:

    <?php if (!in_category(‘3’)) : ?>
    posting code here
    <?php else : ?>
    <?php endif; ?>

    [This code was used on index.php and page.php]

    Of the two, I feel jcornide’s solution is far better than mine–less is more in my book.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Page 2 show the same posts as the home page’ is closed to new replies.