DiggingIntoWordPress

by Chris Coyier & Jeff Starr

Previous Post Link on index.php

Jack Osborne emailed me with a question. His blog layout shows single posts at a time, with a set of arrows to navigate forward and backward in time. This works great on the single.php page where you can use next_post_link() and prev_post_link(), but those don’t work on the index.php file.

Jack wrote up the solution I sent him.

Comments are closed. Contact us with any critical information. Thank you!

Code is poetry