[resolved] Unable to navigate to 3rd page (12 posts)

  1. rfp
    Posted 8 years ago #

    The index shows:

    $page = (get_query_var('paged')) ? get_query_var('paged') : 1;

    And the first 2 pages are ok.

    But... I can't navigate to page/3!

    - In: http://<blog_name>/ I can go to page/2
    - In: http://<blog_name>/page/2 i can't go to page/3
    - In: http://<blog_name>/page/3, i get a 404
    - In: http://<blog_name>/page/4 and furthers, everything's ok...

    I tried with different themes and keeps happening.

    A colleague of mine has a local version, and all works fine. The only difference are in the archive.php. Locally he has 777 and the site has 755, but I don't think this is relevant.

    What can I do? any thoughts? thanks in advance.

  2. hakre
    Posted 8 years ago #

    Hello rfp,

    welcome to the wordpress supoort forums. The first thing I see is that you have place a comma (,) beyond the number three (Third Example URL from top). Maybe that is what is wrong?

  3. rfp
    Posted 8 years ago #

    hello hakre,

    nop... it's a typo on the post...

    there's no comma in the link (on the page/2 link to page 3).

  4. hakre
    Posted 8 years ago #

    Can you post a link to your blog?

  5. rfp
    Posted 8 years ago #

    it seems that this is working now...

    The Options > Reading > Blog Pages was intencionaly set to 8.

    As I was asking for 5 posts per page, for some reason (anyone care to explain?) it was cutting the navigation to the 2nd page only.

    Since I have 35 posts in this category, I changed it to 50 and it is working fine (for now, anyway...)

    Let's see in some weeks for now...

  6. hakre
    Posted 8 years ago #

    Just found a new Club Member:
    next/prev entries link won't go passed page 3

  7. rfp
    Posted 8 years ago #


    I previously closed this thread, but it was still failling. Not on page 3 but on page 5...........

    Anyway, I solved this for good now.

    I created a new template, exactly like the theme's index.php and I call it headlines (the slug). The I removed the next and previous_posts_links from the index and hard-coded:

    a href="/headlines/page/2"

    From then on, all the navigation will happen from /headlines...

    In the reading pane (from the options menu) I had tried to mark headlines as home_page, but it didn't work, because only the first page was templated right, the next ones were templated by the index template.

    Thanks for the help. I will link the other threat to this one.

    Posted 8 years ago #

    rfp, I don't quite understand your fix.

    I understand that you made a duplicate index and renamed it whatever, and I understand that you manually added a link to page/2/ on your original index, but what about the previous/next entries links on the rest of your pages? You removed the code for it...so you don't have them there at all?

    I'm not following what you're saying.

  9. rfp
    Posted 8 years ago #

    Hi dream size,

    I just removed the nav links on the index.php.

    Now, when you go to http://blog, wordpress gives you the index page, with my manually added link to http://blog/headlines/page/2.

    the "headlines" is a template, exactly the same as index, but with the normal nav links, to http://blog/headlines/page/3, or http://blog.

    Any luck?

    Posted 8 years ago #

  11. rfp
    Posted 8 years ago #

    I had already! :)

    But I think our situation is not quite the same. I want to show 8 posts per page in every page BUT the home page (5 posts).

    But thanks anyway!

  12. pixelhustler
    Posted 7 years ago #

    @rfp - I have the exact same issue- I want to show 6 posts per page BUT I want to do 7 on the home page. Any luck with this issue?

Topic Closed

This topic has been closed to new replies.

About this Topic