• Resolved eatonw

    (@eatonw)


    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!

Viewing 15 replies - 16 through 30 (of 30 total)
  • Thread Starter eatonw

    (@eatonw)

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

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

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

    Regards.

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

    Thanks

    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>
    Thread Starter eatonw

    (@eatonw)

    Zeronex,

    Thanks! But this doesn’t work.

    Thread Starter eatonw

    (@eatonw)

    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!

    Thread Starter eatonw

    (@eatonw)

    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>

    Thread Starter eatonw

    (@eatonw)

    <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>
    Thread Starter eatonw

    (@eatonw)

    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.

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

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

    Thread Starter eatonw

    (@eatonw)

    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.

    Thread Starter eatonw

    (@eatonw)

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

    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.

    Thread Starter eatonw

    (@eatonw)

    MichaelH,

    I should apologize that I didn’t take your suggestion seriously just because Binni tried and failed.

    The problem is now resolved! It even had nothing to do with the themes; rather, it was due to an “evil” plugin: Adhesive. It was on the top of my plugin list, and everything went back normal after I simply deactivated it.

    I will tag this post as “resolved”.

    Thanks!

Viewing 15 replies - 16 through 30 (of 30 total)
  • The topic ‘no navigation to the next page’ is closed to new replies.