Loop 5 previous posts on single.php?
-
Hi!
I’m tring to displa the 5 previous posts on my single page but can’t get it to work. I don’t just want the 5 previous titles to be displayed but the entire posts.So, is there a way of looping 5 post posted just before the one beeing viewed?
Someting like this maybe…
<?php
query_posts(‘p < “$current post id” ‘&showpost=5’);
?>
- The topic ‘Loop 5 previous posts on single.php?’ is closed to new replies.