Pagination class for worpress