WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Borderline emegency: prev/next links don't work w/permalinks in news - HELP! (6 posts)

  1. npessoa
    Member
    Posted 7 years ago #

    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:

    http://www.shaydoron.net/news

    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); ?>
    </div>
    <!-- post end -->

    <?php endwhile; ?>

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

    This results in this url: http://www.shaydoron.net/news/page/2/, 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!!

  2. Chris_K
    Member
    Posted 7 years ago #

    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.

  3. npessoa
    Member
    Posted 7 years ago #

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

    http://www.shaydoron.net/?cat=3&paged=2

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

  4. Chris_K
    Member
    Posted 7 years ago #

    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?

  5. npessoa
    Member
    Posted 7 years ago #

    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 shaydoron.net, 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.

    thanks

  6. Chris_K
    Member
    Posted 7 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic