add pagination to posts and categories