Support » Fixing WordPress » next_posts_link() not displaying

  • tazatek


    I’m using theme “PureType” by ElegantThemes and am faced with a case where the category navigation isn’t working at all.

    It’s designed for wp-pagenavi() but displays [page 1 of 0], so I tried the default of next_posts_link() and previous_posts_link() and they don’t display anything at all…

    I suspect that wp-pagenavi() would work if the other navigations worked, so something else is fundamentally wrong.

    The author has looked at it, and found nothing wrong. I’ve got only the 2 plugins that his theme requires installed right now (took out super cache and a few others) and I still have no navigation.

    His theme works for most people, so I’m at a loss for what the limiting denominator is…

    Any thoughts / Ideas ?

    Here’s a category page with over 50 posts, but no navigation…



Viewing 6 replies - 1 through 6 (of 6 total)
  • Can you please paste the whole code you’re using to display next_posts_link() ?



    Sure … This is just a snippet around it… The theme is supposed to support it (either with or w/o wp_pagenavi)

    <?php endwhile; ?>
    <div style="clear: both;"></div>
    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
     else { ?>
    <p class="pagination">
        <?php next_posts_link('&laquo; Previous Entries') ?>
        <?php previous_posts_link('Next Entries &raquo;') ?>
    <?php } ?>
    <?php else : ?>

    UPDATE: I was advised to “reinstall” wordpress… I did to humor the author, but it did nothing to help my situation…

    I’m on wp 2.8.1 PHP 5.0.3 mysql 4.1.20 and apache 2.x

    My php is set for error logging, and shows nothing. Apache is set to Debug level, and shows nothing in error.

    I’m stumped. The code looks right to me (and the author took a peek at my admin panel and found nothing wrong)

    Do I have a silly config error somewhere?


    Matt Please use the template tags correctly, it would work then. 🙂



    I don’t follow –

    what you sent me is for post to post navigation, not category pages navigation… notice the plural in the function

    Is this where you were hoping to send me?

    I’ve now found that it’s not working in the default theme either –
    which has this…

    <div class=”navigation”>
    <div class=”alignleft”>
    <?php next_posts_link(‘« Older Entries’) ?>
    <div class=”alignright”>
    <?php previous_posts_link(‘Newer Entries »’) ?>

    So I think that there is more than meets the eye here 😉

    If my default theme can’t show navigation on the homepage, then something might be configured wrong on my end?

    Or new bug in 2.8.1?

    or… ????




    Were you able to resolve this? Im having the same problem.

    Go to WP Dashboard > Settings > Reading and change the number for “blog pages show at most” option.

    Make sure you actually have enough posts for two pages.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘next_posts_link() not displaying’ is closed to new replies.