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
- Pagination when using wp_query?
- How can i retrieve default post per page value? from settings->reading. And total number of posts?
- Can I force WP_Query to return no results?
- Find out total number of pages in global query on archive page?
- Multiple WP_Query loops with Pagination
- Pagination with custom SQL query
- WordPress Pagination Not Working – Always Showing First Pages Content
- WP Query where title begins with a specific letter
- get_query_var function not working at all
- get_query_var( ‘paged’ ) not working outside of homepage
- Pagination on a WP_query not showing navigation links
- Different ‘posts_per_page’ setting for first, and rest of the paginated pages?
- How to paginate wordpress [gallery] shortcode?
- Pagination returns 404 after page 20
- paginate_links() adds empty href to first page and previous link
- Search custom taxonomy term by name
- paginate_links ignore my format
- Combining two wordpress queries with pagination is not working
- Order Search Results Page by meta_value If no Value Return Remaining Results
- Custom WP_Query order by post_meta and (author) user_meta
- How to paginate attachments in a secondary query as gallery?
- Pagination with WP_Query is buggy – working for some pages, but not the others
- Get the number of posts from the current page results
- WP_Query and Pagination on a Static front page
- Tracing the life of a query
- next_posts_link not working for loop called with ajax
- Query causing load because of SQL_CALC_FOUND_ROWS post counting?
- Want to redirect if search query match exact title of any post
- Why does pagination always break when used on any form of a home page?
- Pagination with 5 posts per page
- Pagination shows 404 after a certain number of pages
- Pagination custom query
- How to support multiple search terms query within one process?
- Pagination/infinite scroll with WP_Query and multiple loops
- How to adjust found_posts so that it accounts for offset and pagination
- WP_query and pagination?
- pagenavi with merged wp_query [duplicate]
- Add and in the header while looping over custom query in page template
- pagination doesn’t show up for custom post type
- Custom search form with empty parameters
- Pagination causes error 404 when used with front-page.php
- How to search by title or tags exclusively?
- Paginated pages are showing correct content but pagination links are not
- WordPress search exact match
- Query with pre_get_posts to get pagination
- Pagination Not working on Home Page with 2 Query
- How do I search WordPress by different fields without a plugin?
- Best Practice For Querying Grandchildren?
- Multiple keyword search
- Pagination not working on static page
- ‘paged’ in wp_query doesn’t work
- Display different number of posts from one category on the different pages
- Using next/previous_posts_link with customised search
- Pagination not working Search posts
- Pagination not working for category posts
- Pagination is not working using WP_Query
- WP Query with offset breaks wp_pagenavi or any pagination
- WordPress custom search form with pre_get_posts not work
- Two queries on the same page with pagination
- 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?
- Show single post then all posts (with pagination)
- Is there a PHP function that can match anything after the given URL, so my IF statement will work in each instance?
- Woocommerce custom loop to show all the products [closed]
- How to bring specific post to front of wordpress loop?
- Pagination for custom query on single.php
- Multiple search queries on one page
- Merged two WP_Queries, posts per page and pagination not working
- Pagination doesn’t work in custom page template [duplicate]
- tax_query shows no results if nothing is selected
- Intentionally exceed max_num_pages on main query without getting 404?
- WP_Query pagination not working in admin area
- Pagination 404 errors for author posts query on author.php
- WordPress pagination link always leads to home page
- Searching through different categories on different pages code is not working
- WP_QUERY loop, offset in the arguments and the paginate_links – can these work together?
- Pagination problem after WP_Query with tag filtering
- Too many posts cause slow load when paginating
- Pagination stops at page 6
- Paginated HTML Sitemap
- How to output different posts per page?
- WP Query search for attachments and their exact title
- Multiple WP_Query loops with Pagination Not Working
- Posts loop with pagination on a single post page
- Custom pagination with WP_Query generating 404 error
- WP_Query’s “request” SQL Query
- Including only current user’s posts in search