Add post navigation to "single.php" post page
-
Hello I am working on a website using wordpress for an online magazine but one thing is causing me a lot of problems.
On my “single.php” page I want to have a navigation to the latest 5 posts including thumbnails, category and author info. I do not know how to do this, since I can’t “get the posts” since there is only one post this page (the single blogpost). The closest I have gotten to this is to use
<?php wp_get_archives('type=postbypost&limit=5'); ?>
Which shows the title and links to the latest five blog posts, but without the thumbnail and etc. which I also want displayed for consistency across the site.
I hope someone is able to help – please let me know if you want me to provide screenshots or similar additional information. The site is currently running on localhost.
Thanks in advance!
- The topic ‘Add post navigation to "single.php" post page’ is closed to new replies.