WordPress.org

Ready to get started?Download WordPress

Forums

next_posts_link() not displaying (7 posts)

  1. tazatek
    Member
    Posted 4 years ago #

    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...
    http://www.kettlewell.net/category/internet-marketing/

    Thanks

    Matt

  2. Pranav Rastogi
    Member
    Posted 4 years ago #

    Can you please paste the whole code you're using to display next_posts_link() ?

  3. tazatek
    Member
    Posted 4 years ago #

    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;') ?>
    </p>
    <?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?

    Thanks

    Matt

  4. Pranav Rastogi
    Member
    Posted 4 years ago #

    http://codex.wordpress.org/Template_Tags/next_post_link Please use the template tags correctly, it would work then. :)

  5. tazatek
    Member
    Posted 4 years ago #

    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?
    http://codex.wordpress.org/Template_Tags/next_posts_link

    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>
    <div class="alignright">
    <?php previous_posts_link('Newer Entries »') ?>
    </div>
    </div>
    `

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

    Help!!

    Thanks

    Matt

  6. mikebear
    Member
    Posted 4 years ago #

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

  7. MichaelWeb
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic