Support » Fixing WordPress » Add a older posts/entires button on index page

  • Resolved raggteknik



    I looked around the forums and unfortunately I could not find anything that actually solved my problem.

    Apparently the theme I am using does not have a built in button for showing older posts. This is a bit problematic since I now have more posts than I want to show on the index page.

    I would like to add a “older posts” button to my WordPress index page. I am using the Hemingway theme.

    If I understood it correctly i need to add

    <?php next_posts_link(‘Older Posts’); ?>
    <?php previous_posts_link(‘Newer Posts’); ?>

    somewhere in my index.php

    I dont have any knowledge of php editing so this is a bit tricky for me.

    My index.php currently looks like this

    It would be great if someone could make a copy and insert the code I need to put it. It would really help.

    I changed the number of posts allowed in the reading tab in settings from 10 to 15 as temporary solution.

    I really hope someone knows what to do! I really appreciate all the help i can get.
    Thank you all in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael


    Forum Moderator

    that posted template already has the code for ‘older posts/newer posts’ – if this is not showing on your site, there might be a different rason.

    can you provide a live link to your site, with the number of ‘posts per page’ set to 5 or lower so there should be a pagination…

    what theme are you using?


    actually i just managed to solve it myself. It was just a mistake from my side. I had the reading setting set too 15 all the time. Embarrassing…

    Anyways, thanks for your reply 🙂


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add a older posts/entires button on index page’ is closed to new replies.