WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] no navigation to the next page (31 posts)

  1. eatonw
    Member
    Posted 5 years ago #

    Hello,

    At some point I upgraded my wordpress to 2.7 and then I lost the navigation to the next (or previous) pages of my posts on my blog. I then thought my theme might be to out-of-date, so I tried other more up-to-date themes and the problem remains.

    Could anyone give me a hand?
    Waiting online...

    Thanks!

  2. eatonw
    Member
    Posted 5 years ago #

    Help?

  3. Binni
    Member
    Posted 5 years ago #

    Pal, you're not the only one having this problem and prepare yourself for a very long and silent solitude in here!

    Check this out:
    Links in "Add Media" Palette malformed?
    Page navigation broken, both in theme and WP!

  4. eatonw
    Member
    Posted 5 years ago #

    Oh, man! This is really bad.

    Thanks for letting me know!

  5. eatonw
    Member
    Posted 5 years ago #

    Was this problem reported to the WordPress team for a fix?

  6. Binni
    Member
    Posted 5 years ago #

    I have absolutely no idea. You should check it out.

  7. MichaelH
    Member
    Posted 5 years ago #

    I'm not seeing the problem, at least with the WordPress Default theme.

    If you deactivate all plugins and change to the WordPress Default theme, does the problem persist?

    If you continue this thread, please provide the following information:

    Your host:
    Operating System:
    Version of PHP:
    Version of MySQL:

    Also please confirm if you are using WordPress 2.7 or 2.7.1.

  8. Binni
    Member
    Posted 5 years ago #

    This is what I am using:

    WordPress 2.7.1 (the problem started when I upgraded to 2.5 and has persisted since!)
    Mysql: 5.0.45
    PHP: 5.1.6
    OS: Linux 2.6.18-92.1.10.el5 (CentOS)

    Regards.

  9. MichaelH
    Member
    Posted 5 years ago #

  10. MichaelH
    Member
    Posted 5 years ago #

    Binni, what permalink structure are you using?

    Is WordPress in the web-root folder, or do you have it installed in a sub-folder of web-root?

  11. eatonw
    Member
    Posted 5 years ago #

    Host: Dreamhost
    OS: Debian Linux
    Mysql 5
    PHP 5

    I'm using WP 2.7.1 now but the problem arouse after I upgraded to 2.7 or 2.6.

    Thanks!

  12. eatonw
    Member
    Posted 5 years ago #

    In my case, it's installed in a folder in the webroot.

  13. MichaelH
    Member
    Posted 5 years ago #

    Eaton,

    What Permalink structure is in use?

    As for the folder, you have web-root/somefolder/wp-content, for example, and wp-config.php resides in web-root/somefolder?

  14. eatonw
    Member
    Posted 5 years ago #

    Btw, I just used the default permalink structure.

    Regards.

  15. eatonw
    Member
    Posted 5 years ago #

    Hi MichaelH,

    Actually, I was wrong. My directory looks like web-root/my domain name/blog folder/wp-content.

    Is this a problem? But the issue wasn't there before the upgrading.

    Thanks,
    Eaton

  16. MichaelH
    Member
    Posted 5 years ago #

    Is this a problem? But the issue wasn't there before the upgrading.

    Not saying it is a problem, but wanted to have all the variations 'known' in case someone has any thoughts about this.

  17. eatonw
    Member
    Posted 5 years ago #

    I see. Hope someone would help solving this annoying problem.
    Best.

  18. Binni
    Member
    Posted 5 years ago #

    My permalink structure: http://www.website.com/2009/03/16/sample-post/

    WP installed in a sub-folder of web-root.

    Regards.

  19. zeronex
    Member
    Posted 5 years ago #

    if possible can someone post a link to their live website with this issue?

    Thanks

  20. zeronex
    Member
    Posted 5 years ago #

    can someone test following by pasting in index.php of their current theme.

    <div class="navigation">
    			<div class="alignleft"><?php echo "<a href='/page/".($page-1)."' >Older Entries</a>"; ?></div>
    			<div class="alignright"><?php echo "<a href='/page/".($page+1)."' >New Entries</a>"; ?></div>
    </div>
  21. eatonw
    Member
    Posted 5 years ago #

    Zeronex,

    Thanks! But this doesn't work.

  22. eatonw
    Member
    Posted 5 years ago #

    The problem is temporarily resolved!

    Zeronex,

    Thanks a lot! Although your code didn't work, but it motivated me to check what was going on. I found the navigation of my blog pages uses "?paged=xxx? rather than "/page/xxx". Hence I modified what you provided as follows.

    `<p>
    <div class="navigation">
    <div class="alignleft"><?php echo "« Previous Page"; ?></div>
    <div class="alignright"><?php echo "Next Page »"; ?></div>
    </div></p>`

    This now works. Although I haven't figured out what's wrong in the function next_posts-link() and previous_posts_link() yet, there is now a clue to locate the issue and fix it.

    Best regards!

  23. eatonw
    Member
    Posted 5 years ago #

    Sorry, something is wrong with the above code. They should be:

    <p>
    <div class="navigation">
    <div class="alignleft"><?php echo "« Previous Page"; ?></div>
    <div class="alignright"><?php echo "Next Page »"; ?></div>
    </div></p>

  24. eatonw
    Member
    Posted 5 years ago #

    <p>
    <div class="navigation">
    <div class="alignleft"><?php echo "<a href='?paged=".($paged-1)."' >&laquo; Previous Page</a>"; ?></div>
    <div class="alignright"><?php echo "<a href='?paged=".($paged+1)."' >Next Page &raquo;</a>"; ?></div>
    </div></p>
  25. eatonw
    Member
    Posted 5 years ago #

    It seems that the functions called in the following code in the original index.php of my theme(s) cannot acquire a correct initial value.
    <p><?php next_posts_link('&laquo; Previous Entries') ?>&nbsp;&nbsp;&nbsp;<?php previous_posts_link('Next Entries &raquo;') ?></p>

    As long as I used the nav link created by the newly added code to navigate to the second page or the earlier ones, the function previous_posts_link() started to work, in a wrong way, but "next entries" did show up. However, the function next_posts_link() has never worked.

  26. Binni
    Member
    Posted 5 years ago #

    This did not work, zeronex. Well, the links do show up, but there's an error on page and after navigating to /page/2/ you cannot navigate further.

    I use a Bottom Page Navigation Page Template (bot-nav.php) and this is the code in it:

    <?php posts_nav_link(' &bull; ','Newer entries','Older entries'); ?>

    The links simply don't show up (they're supposed to be in a small grey box under the last entry on the bottom of the index page on my site at http://www.skalholt.is). This is also the case in WP Admin, the navigation links for Posts and Comments don't show up (although they work fine for Pages).

  27. MichaelH
    Member
    Posted 5 years ago #

    @eatonw and Binni -- this question needs to be asked again:

    If you deactivate all plugins and change to the WordPress Default theme, does the problem persist?

  28. eatonw
    Member
    Posted 5 years ago #

    I think Binni said that the problem persists even if he disable all plugins and use the default theme.

    And thanks Binni, I just noticed the navigation links don't show up either in my wp-admin page of posts. This seems not related to themes or plugins.

  29. eatonw
    Member
    Posted 5 years ago #

    Well, in the admin page of comments, the navigation links are present.

  30. Binni
    Member
    Posted 5 years ago #

    Deactivating plugins and changing to WordPress Default theme does not solve this problem. Rolling back to version 2.5 seems to be the solution to the problem, as stated here, and that also proves this is a problem with 2.7.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags