Ready to get started?Download WordPress


Previous Entries & Next Entries not working (4 posts)

  1. CognitiveCombine
    Posted 6 years ago #

    I've been working on a new theme and just realised that the 'previous entries' and 'next entries' link to urls ending with:

    /?paged=2 (for example)

    The page doesnt change when these links are clicked.

    What did I mess up, I can't figure it out.

  2. sasch9r
    Posted 6 years ago #

    Just use the following codes and change the common options in/at (? xD) Options -> Permalinks to Default.

    <?php next_posts_link('&laquo; prev page') ?>
    <?php previous_posts_link('next page &raquo;', '-') ?>

    Works well for me.

  3. CognitiveCombine
    Posted 6 years ago #

    I never changed the Permalink settings, they are still on default.

    The code in my theme is:

    <?php next_posts_link('&laquo; Previous Entries') ?>
    <?php previous_posts_link('Next Entries &raquo;') ?>

    Which is why I am confused as to the sudden source of this issue.

  4. CognitiveCombine
    Posted 6 years ago #

    In what situations would the link point to a /?paged=2 etc.. ?

Topic Closed

This topic has been closed to new replies.

About this Topic