improved the odin_pagination() to accept a custom query