Pagination for searching posts
Minor: fix searching posts