How do I Paginate Search Results for Custom Post Types?
Instead of implementing a custom search query, instead include the custom fields in the standard search, and use rewrite rules to map /?post_type=cars&s=mysearchterm to /search/cars/mysearchterm . Or just use the query vars in the URL rather than POST/$_POST or transient data. GET/$_GET is your friend here. Transients are intended for storing data temporarily rather than … Read more