Add a older posts/entires button on index page
-
Hi!
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
https://pastebin.com/8LwUyaQ3It 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.
- The topic ‘Add a older posts/entires button on index page’ is closed to new replies.