offset
would skip posts, it sounds like you want the current page number * the number of posts per page-
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$posts_per_page = $paged * get_option('posts_per_page');
$args = array( 'posts_per_page' => $posts_per_page );
You’ll need to keep in mind that total number of pages in the query object will change as you change the number of posts per page, so you’ll need to keep track of that yourself.
Related Posts:
- How to determine if I’m on the first page of pagination?
- Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)
- Get the number of posts from the current page results
- Jetpack Infinite scroll conflicting with theme’s pre_get_posts custom posts_per_page
- Custom posts per page does not work with pagination
- Querying posts only if the current page is not paged?
- Cannot go back to the first paginated page using pagination links
- Different page template for paginated content?
- filter posts by meta key with pagination
- Pagination diplays always 2 pages
- Update Gallery Randomly in every hour with no duplicates?
- Custom pagination generates title 404
- the paged param is allways 0
- send user to first page of results when reposting to page?
- WordPress loop problem: Multiple loops, index.php and is_paged causing duplicate posts on next page
- paged query leads to 404? [duplicate]
- How to remove post duplicate when using query_posts(‘offset=1’)
- How to make infinite scroll by dividing the content?
- 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
- How To create ajaxed wp-pagenavi?
- Using paginate_links() to generate “1, 2, 3 … 10, 20, 30, 40… 55” paginations
- How can I display 7 posts on the home page, but 9 posts on the subsequent pages?
- Combining WordPress pagination functions for archives and search results
- Passing custom args in paginate_links
- Custom Permalinks Break Search Pagination
- Paginate a list of users?
- 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
- pagination in author.php template returns 404 error
- 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
- Too many posts cause slow load when paginating
- How do I insert CSS into a function?
- wp_list_categories pagination
- Insert pagination links – wp_link_pages() – before filters on posts
- 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?
- WordPress pagination with get_posts?
- 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
- How to customize pagination links?
- Wp pagination for custom database table
- How to customize wp_link_pages()?
- How to implement a slideshow on WP similar to these examples?
- “paged” in WP_Query returns 0 posts
- 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
- Customizing Latest Post Pagination
- Remove Post if Advanced Custom Field is checked to fix paging
- 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
- Page not found yet the posts are listed?
- 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
- WordPress default gallery pagination when in page (is_page)?
- How do I hide a Gutenberg block when paginating
- Blog Posts – Scroll to view more
- 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
- get_posts custom paging
- 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
- List of filtered Events is breaking paging?
- Paginate WordPress Category Pages
- Pagination for custom post type not working [duplicate]
- Pagination in category.php not functioning
- Pagination with wp_pagenavi not working on custom 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