Support » Fixing WordPress » Borderline emegency: prev/next links don’t work w/permalinks in news – HELP!

  • Resolved npessoa


    Ok. I have a major problem because I was thinking I had 12-24 hrs before a domain would resolve and it did it immediately, which didn’t give me any time to figure out this problem, which is that the Previous/Next links in archives.php, that is controlling my “news” section, don’t work.

    I hate to do this, but I’m leaving the site up live right now for the purposes of troubleshooting:

    I don’t know if it’s an issue with Permalinks or what, but here’s what’s in the code:

    <?php while (have_posts()) : the_post(); ?>

    <!– post start –>
    <div class=”news_page” id=”post-<?php the_ID(); ?>”>
    <h2>“><?php the_title();?></h2>
    <?php the_time(‘F j, Y’); ?> – <?php echo get_post_meta($post->ID, ‘Publication’, true); ?>
    <!– post end –>

    <?php endwhile; ?>

    <div class=”prevnextnav”>
    <div class=”floatleft“><?php posts_nav_link(); ?></div>

    This results in this url:, which results in an error and takes you back to index.php – but a messed up version of index.php.

    I think it must have something to do with the way the permalinks are making the /page/2/…

    I have no idea how to figure this out, and the WP specialist who’d helped me with my theme is gone right now. URGENTLY NEEDING advice!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • For testing purposes: If you visit Options -> Permalinks, and set them to default, does it work?

    If so, then you have a Permalinks issue. That page I linked has a lot of troubleshooting info.

    Yes, when I switch to the default, the link works. I can see the news page here:

    (Note they’ve been changed back to the permalinks for troubleshooting)

    I know it’s a permalink issue – I did the first thing listed under the “Paged Navigation Doesn’t Work” section of the Permalinks Codex entry, but that didn’t helpl (in other words, I deleted htaccess and re-entered the permalinks)

    Somebody must be using multiple pages for categories with permalinks…

    Somebody must be using multiple pages for categories with permalinks…

    Well yeah, pretty much everyone with a WordPress blog.

    Do your Permalinks work for *anything* at all?

    Thanks Handy,

    Yes, the permalinks work when I try different settings – but that particular combination of /%category%/%post_id%/ was bad for the pagination.

    Since the links to different site sections were hardcoded in the header template, I simply changed the link to News to point to cat=3 instead, and it works exactly how I need it to.

    Thank you for your help!

    Btw – if you go to, do you see the site? Because unless I’m on crack, I think it’s online. The client just emailed me and said it wasn’t, but my computer’s cache (which I’ve emptied) or brain must be playing serious tricks on me if it’s not up.


    Yep, I see it online. DNS changes do take time to propogate, so the client’s DNS server may not have the update yet.

    Or they may need to ipconfig /flushdns (if windows) or heck, just reboot. Easier to tell ’em to wait though. 😉

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Borderline emegency: prev/next links don’t work w/permalinks in news – HELP!’ is closed to new replies.