Simple custom pagination function for WordPress sites.