How to add pagination to a custom post type