If you want to stay with a new Wp Query, as in your example, changing your $allsearch name for the query variable to $wp_query should do the trick.
Looks like the pagination functions are expecting that variable name for the query… So, try that…
Related Posts:
- Pagination Not working on Home Page with 2 Query
- Cutom wp_query for geolocation search, pagination not working
- Adding pagination to sub-wp_query within a singular post page
- How to set up pagination for a custom loop on a global template (author.php, tag.php, archive.php?)
- Switched from query_posts to wp_query, pagination no longer working
- Pagination problem with multiple loops on the same page
- Pagination when using wp_query?
- Find out total number of pages in global query on archive page?
- Post_count only shows the number of results per page
- WordPress Pagination Not Working – Always Showing First Pages Content
- get_query_var function not working at all
- get_query_var( ‘paged’ ) not working outside of homepage
- Pagination returns 404 after page 20
- Combining two wordpress queries with pagination is not working
- next_posts_link not working for loop called with ajax
- Why does pagination always break when used on any form of a home page?
- Pagination shows 404 after a certain number of pages
- Pagination not working for Custom search form & custom result template
- Pagination broken when merging search results with additional WP_Query
- Query with pre_get_posts to get pagination
- Multiple keyword search
- Pagination is not working using WP_Query
- Transient pagination not working properly
- Woocommerce custom loop to show all the products [closed]
- How to bring specific post to front of wordpress loop?
- Intentionally exceed max_num_pages on main query without getting 404?
- Pagination 404 errors for author posts query on author.php
- Pagination problem after WP_Query with tag filtering
- Pagination stops at page 6
- Paginated HTML Sitemap
- How to output different posts per page?
- Multiple WP_Query loops with Pagination Not Working
- Posts loop with pagination on a single post page
- Offset Page Loops and Pagination
- Pagination is broken and I need help fixing it
- WP Pagination on Posts Search Results Page resulting from AJAX WP Query
- Create A Loop With A Variable Number of Posts For Each Bootstrap Row?
- Is there any advantage of using default WordPress Search instead of creating a custom one?
- The pagination on index.php doesn’t work on a first page
- paging in WP_Query on static page
- Use post object from first query in second query
- pagination with numbers for WP_User_Query
- WordPress pagination not working using WP_Query
- posts_per_page not working for first page of pagination
- Include data from custom table in WP_Query
- Pagination on static Posts page
- echo a specific meta_key queried through a custom post
- How to cache wp_query with pagination using transients?
- Pagination only won’t work in author template
- wp query error while paging the posts
- “paged” in WP_Query returns 0 posts
- Pagination on template page for custom query redirecting to index.php
- How to order posts on each different category?
- Notice thrown when creating numeric pagination on custom query
- Paging + WP Query
- WP_Query custom order and pagination
- Second loop pagination changes URL, not content
- Unable to paginate a custom page query
- Query Not working as expected
- max_num_pages says 4, yet I am only able to navigate to the third page
- Paginate pages with dynamic query
- filter posts by meta key with pagination
- Trouble Making WP_Query paged
- Ajax (jquery) wp_query pagination returns -1
- Function the_posts_pagination() not compatible with WP_Query arguments
- adding pagination to a foreach loop in wordpress
- paginate_links appearing on page but it doesn’t actually paginate – pagination on a static page with a dynamic `post_type` argument on a static page
- Pagination of custom page with custom fields query
- pre_get_posts pagination not working
- Pagination not working on archive.php template?
- Pagination inside the blog page not working
- Pagination Shows Up But Won’t Work on Custom Gallery Page
- Custom Query Pagination not working on static front page
- WordPress search page pagination displaying but not functional
- Multiple values in WP_Query : category__and
- Paginated Post List on Front Page
- Pagination in WP_Query?
- Pagination returns 404 after page 20
- Archive – Show Page Month Headers
- Query post Pagination Problem
- Pagination for custom query throws 404 errors on last pages [duplicate]
- Pagination is not working on custom query inside a custom home page template
- Horizontally paginate through sets of blog posts?
- Pagination error WordPress multiple loop
- Comments orderby comment date not working
- Pagination With Custom WP Query not functioning
- Ordering Custom WP_Query loop by meta key value with pagination
- Loop being strainge
- Custom query (author is post_author or meta co_author) with Pagenavi pagination
- Pagination in custom query not working [duplicate]
- paginate_links() on page (shortcode output)
- Paginate wp_query while utilizing post__not_in
- Get next post when using pagination with WP_Query?
- Duplicate posts showing up in loop using infinite scroll
- Pagination showing same posts despite changing page
- shortcode with $atts with strange results
- Pagination with Custom Post Type not working on index.php: I get a 404
- Pagination on custom post type not working
- Show number of posts AND number on current page (cannot make it work)
- Limit paginated result set to a maximum number of posts