Custom WP post pagination without a plugin