Pagination Function For WordPress
The way WordPress handles post pages is to provide links to the previous posts and next posts, using previous_posts_link()
and next_posts_link()
respectively. When redesigning my site, I wanted to paginate the post pages to provide users with a more usable, intuitive interface.
While there are a number of WordPress plugins that enable pagination, I chose to write my own. I wanted a something that was flexible enough to be used in a number of different situations, but most of all I wanted the experience and challenge of writing my own pagination function.