WordPress search: pretty URLs (permalinks), custom post types and pagination
Pagination can be done in exactly the same way it works everywhere else in the search archive template. There’s no need for your custom query and type variable in search.php either. To search for a particular custom post, you can either modify the query, or you can go to that posts archive and append the … Read more