• I’m trying to get a new theme for my blog working, the new them initially did not come with any “next page” links at the bottom of the screen. I used the following code:

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

    This made the links appear however each time I click the link it takes me back to the main page. I have not set a static front page from the wp-admin dashboard, here’s my the original code for my index:

    http://pastebin.com/de978744

Viewing 5 replies - 1 through 5 (of 5 total)
  • you don’t have semicolons after every close parenthesis

    Thread Starter checktherhime

    (@checktherhime)

    I went back and added semicolons, but when I did that all of my posts showed up on the front page twice and when I added the code for “next page/previous page” it still took me to the front page:

    Thread Starter checktherhime

    (@checktherhime)

    bump.

    I’m having a similar problem, my front page “older entries” takes me back to the home page as well (same page) so basically looping my site front page? My older/newer entries links work only when I’m directly in a category but not when I’m on the front page. Does anyone know what’s up with that, or how did you fix your problem?

    Will I fixed my problem by redirecting my site intermediately to the category I wanted using this plugin for those who have the same issue:

    http://wordpress.org/extend/plugins/redirection/

    works for me 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Next Page Links Go To Home Page’ is closed to new replies.