Implement pagination for custom archive pages