Forums

Next Page Links Go To Home Page (6 posts)

  1. checktherhime
    Member
    Posted 2 years ago #

    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

  2. lhoylhoy
    Member
    Posted 2 years ago #

    you don't have semicolons after every close parenthesis

  3. checktherhime
    Member
    Posted 2 years ago #

    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:

  4. checktherhime
    Member
    Posted 2 years ago #

    bump.

  5. WesleyTack
    Member
    Posted 1 year ago #

    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?

  6. WesleyTack
    Member
    Posted 1 year ago #

    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 :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.