Showing the previous and next posts in full
-
Hi guys
I’m building a custom WordPress theme at the moment and I’m having trouble doing something which I thought originally must be quite simple.
On a single post view page, I want to also feature the previous and next posts in the same category relative to the one I’m showing. At the moment all I seem to be able to do is include a link to them which is fine, but I want to be able to show anything from the post, the_title, the_content, the_permalink etc etc just like the main post on that page. This would give me full control over what I show.
Basically I want to show a cut down preview of the previous and next posts, either side of the current post on a single post view. This could be used to cycle through the posts in that category, but offers a bit more of a clue about the destination of the link (ie show an image)…
I thought I might be able to use a query and then run another loop to show them, but I haven’t managed to make this work. I’m also intrigued by the ‘offset’ parameter – could this help me?
Does anyone know where I can start?
- The topic ‘Showing the previous and next posts in full’ is closed to new replies.