Finally, I’ve found an answer. Not sure if it’s specific in my case or it’s a general WP issue but default value for posts per page set up in WP admin (General > Reading > Maximum number of posts per page) should be less than value for posts_per_page parameter for custom query. In my case, I’ve changed in WP options value to 3 and for other page changed this to 5 and all working fine now!
Related Posts:
- How to determine if I’m on the first page of pagination?
- WordPress /page/2 404 pagination problem – what to do?
- How To create ajaxed wp-pagenavi?
- Non existing blog pages are not redirected to 404
- pagenavigation not showing the next page just linking back to the main page [closed]
- category/category_name pagination 404 error
- Pagination gives 404 in template
- Pagination (page/2/) displaying 404 on archive pages
- 404 not found error on pagination
- Pagination with $_POST and $_SESSION
- Pagination on home page not working
- WordPress triggers 404 on page 2 for custom search query
- Pagination 404s on custom query
- Wp-pagenavi giving page not found on clicking page 2
- Error 404 on pagination on homepage
- Pagination breaks on child-categories, works fine on parent-category
- Page not found yet the posts are listed?
- pagination links not displaying
- remove rel=next on category page (if
- Page navi for template page
- PageNavi redirects to 404 when used as archive page
- 404 error next-page [2] PageNavi custom type taxonomy
- Changing post per page causing 404 for pagination. Need a redirect htaccess rule
- Custom pagination generates title 404
- Pagination 404 Not Found child page
- pagenavi shows a lot of pages calculated from all posts in the site with query_posts
- Need help getting this page nav working correctly [closed]
- paged query leads to 404? [duplicate]
- Please Help me with Archive 404 Pagination
- Pagination with wp_pagenavi not working on custom page
- Why do you need an unlikely integer in paginating?
- How to get the number of Pages in a single Post Pagination?
- Next/Previous Links in same category
- Using paginate_links() to generate “1, 2, 3 … 10, 20, 30, 40… 55” paginations
- How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?
- Combining WordPress pagination functions for archives and search results
- Passing custom args in paginate_links
- Allow Users to Choose Pagination or Next/Previous (Combine)
- Pagination that includes “view all on one page”
- Custom page-links for paginated posts | wp_link_pages quicktag
- Pagenavi pagination via wp-query in functions.php showing same content for each page
- Archive pagination causing 404 with permalinks structure
- Jetpack plugin – ‘posts_per_page’ not overriding ‘Blog pages show at most’ option, also different values for different post types?
- Pagination with get_posts seems to work but links not showing
- How to let crawlers search paginated comments?
- In pagination, change link for page 1 to homepage
- Custom pagination with WP_Query generating 404 error
- Post Pagination Showing Same Posts Every Page
- How do I insert CSS into a function?
- Pagination for multiple queries for different authors on author.php
- WordPress 5.5 breaks pagination in an older plugin
- How to get “nexepagelink” and “previoiuspagelink” in wp_link_pages?
- Paginate Pages by only showing 3 pages at most
- Using Pagination with Timber Routes
- Is it possible to have pagination with an offset loop?
- Authors list Pagination?
- Exclude certain post formats from pagination
- How to use pagination on costum post type
- How to make WP Query Pagination work
- Archive pagination not working
- Custom post type pagination 404
- How to customize wp_link_pages()?
- How to implement a slideshow on WP similar to these examples?
- Page with Multiple Loops Breaking Pagination
- Can posts_nav_link show post titles?
- The paging is very slow under a large number of articles
- Custom admin page pagination permissions error
- Woocommerce products per page dropdown
- WordPress Pagination is not shown
- Show multiple next and previous posts
- How to add pagination to category templates
- Make posts_per_page value the same on all pages
- Search URL redirect problem
- Adding pagination to a custom template that uses custom post types?
- Why are my paginated result links not working?
- Pagination don’t list all entries on Index.php
- Problem with custom loop navigation inside the blog page
- WordPress default gallery pagination when in page (is_page)?
- How do I hide a Gutenberg block when paginating
- Understrap Custom Pagination
- Pass global variable from Page 1 to page 2 (Pagination)
- How to remove url from omission dots in WordPress pagination?
- Pagination not working on archive.php
- Pagination 301 redirecting page 1
- change pagination url
- Creating a Back button on detail post page to go back to blog page with same query strings and page id
- page/2 not working in wordpress it showing 404 page erorr
- Extra pagination pages being wrongly generated
- 404 Error on pagination with WP Query
- What is wrong with my code ? pagination does not show up
- Pagination re-direct to main page [duplicate]
- Paginating custom posts in categories yields a 404 error
- Pagination for custom post type not working [duplicate]
- How do I paginate a custom post type listing on a custom template page?
- how to apply Pagination on post
- Add Pagination in custom loop
- Custom Post Type Pagination For Genesis Child Theme [closed]
- Modifying previous_posts link to use AJAX
- paginate_links with select option
- Is ‘pm’ used by core?