Like the blog? Get the book »

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.

© 2009–2024 Digging Into WordPress Powered by WordPress Monzilla Media shapeSpace