Wordpress: Custom category template pagination problem