Support » Fixing WordPress » Unable to navigate to 3rd page

  • Resolved rfp


    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.

Viewing 11 replies - 1 through 11 (of 11 total)
  • 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?

    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).

    Can you post a link to your blog?

    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…

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


    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.

    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.

    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?

    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!

    @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?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Unable to navigate to 3rd page’ is closed to new replies.