Pagination working for both posts and comments