Initially, I had hoped on working on getting the code blocks to render better, potentially with some inline formatting — but then I realized that my older posts were no longer showing up on the page. Guess I’ve written quite a bit!
As usual, the WordPress Codex has the information I need. Their page on pagination references the
previous_posts_link() functions that should do the trick. I’ll add this right before the
get_footer() function in my index.php file.
<div class="row"> <div class="col-sm-9 col-md-7 col-sm-offset-2"> <nav aria-label="pagination"> <ul class="pager"> <li class="previous"><?php previous_posts_link(); ?></li> <li class="next"><?php next_posts_link(); ?></li> </ul> </nav> </div> </div>
Wrapping them in Bootstrap, they generate exactly the HTML I want. For now.