Page 1 on repeat is usually a wp_query issue. A 404 is a permalink issue – try setting them to default and see if the same problem occurs. If it doesn’t, then switch them back to custom and your problem should have resolved itself.
If default permalinks give you a 404 on page two then we need to look at that pagination code a bit more closely. Personally, I’m a fan of Justin Tadlock’s code because it’s flawless.
https://github.com/justintadlock/hybrid-core/blob/master/extensions/loop-pagination.php
Related Posts:
- Post_count only shows the number of results per page
- Pagination not working for Custom search form & custom result template
- Pagination broken when merging search results with additional WP_Query
- Search – Ajax – Alter Query Parameters with Pagination
- Add custom search results to main WP search [duplicate]
- wp_query ‘s’, search filter with pagination is not working
- WordPress pagination not working on template search.php
- Cutom wp_query for geolocation search, pagination not working
- How do I get my custom query to work with search results after the first page?
- How to filter a static post page with ajax and $wp_query
- Pagination repeating posts on search results
- WordPress search page pagination displaying but not functional
- Search results stuck on page 1
- Can I force WP_Query to return no results?
- Multiple WP_Query loops with Pagination
- paginate_links() adds empty href to first page and previous link
- Pagination with WP_Query is buggy – working for some pages, but not the others
- Get the number of posts from the current page results
- Pagination custom query
- Pagination/infinite scroll with WP_Query and multiple loops
- WP_query and pagination?
- pagenavi with merged wp_query [duplicate]
- Add and in the header while looping over custom query in page template
- Custom search form with empty parameters
- Transient pagination not working properly
- Injecting content with $wp_query->current_post restarts from zero on paged pages. How to inject content after X posts, regardless of pagination?
- Woocommerce custom loop to show all the products [closed]
- Multiple search queries on one page
- Merged two WP_Queries, posts per page and pagination not working
- 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
- Create ONE callback for all page templates, post filter queries + paginated pages, triggering pagination via AJAX
- Pagination is broken and I need help fixing it
- Creating a custom search for a specific post type
- WP Pagination on Posts Search Results Page resulting from AJAX WP Query
- Assigning a meta_query value based on regexp to wp_query fails
- Five posts from a category in footer
- Search for multiple tags?
- paging in WP_Query on static page
- Display filtered results into custom page
- Query with search and subscribers only output
- how can I override The Events Calendar query modifications?
- Pagination inside of a edit page
- WP Query to have sticky posts first, with pagination and having a joint ‘posts per page’ arg with main loop
- Pagination on static Posts page
- Modify Search Query if original Query gave no results
- How to cache wp_query with pagination using transients?
- Removing duplicate values between two wordpress queries
- Include post content of linked posts in search
- Prevent author bio page from showing in search results
- WordPress Custom Search Form Displaying Unexpected Results
- Stomping WP_Query in author archive to facilitate pagination with custom queries
- How to properly use AND / OR in custom search
- Yoast primary category query modification
- Slow Query On Search
- How To Keep Search Title the same on paged Results
- Pagination in html table is not working
- Paging + WP Query
- How to restrict search on a certain page to only return results against custom taxonomies?
- Filter out a meta key in the Search results page with two CPT
- WP_Query custom order and pagination
- Query by key or author
- Query Not working as expected
- WP_query paged pagination with excluded category still counts it
- max_num_pages says 4, yet I am only able to navigate to the third page
- Paginate pages with dynamic query
- Determining what post is displayed out of total posts found
- Trouble Making WP_Query paged
- Can I make a search query which includes a space?
- My combination of ‘post_type’ and ‘tax_query’ not working?
- 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
- WordPress Sub Category Archive, Show Extra Empty Page Number in Pagination
- WP_Query no result if keyword contains number
- Pagination unique to a widget
- Why pagination is not working with tax_query param?
- paginate_links method doesn’t show second page of my custom wp_query
- Wp_Query Post per page not working?
- Pagination Shows Up But Won’t Work on Custom Gallery Page
- getting posts by tags
- Custom Post Type WP_Query with filters and search
- WP Query – Search in title or author_name
- Get posts by similar names and categories
- Combine WP_Query with array of custom data to single loop without breaking the pagination
- Pagination returns 404 after page 20
- WP_Query with Pagination and orderby meta_value_num showing duplicates
- Horizontally paginate through sets of blog posts?
- $wp_query when new WP_Query
- Pagination error WordPress multiple loop
- Comments orderby comment date not working
- Switched from query_posts to wp_query, pagination no longer working
- Pagination With Custom WP Query not functioning
- Query specific number of posts for each post type in specific order
- Custom query (author is post_author or meta co_author) with Pagenavi pagination
- error with $query->have_posts()
- WordPress WP_Query Search (‘s’) With Multiple Search Terms
- Custom Taxonomy in custom REST API search
- Pagination only showed when no category is set in wp_query
- taxonomy-{term}.php terms pagination returning 404 after a certain page