Cleaning

The display_posts function was a mess. It needed some tidying up.

It may need further simplyfying.
Page navigation
Show the page navigation where it was before