I was able to reproduce the error. Here’s what I think is happening.
‘number’ defines the number of users per page, and ‘paged’ tell the query which page to return.
For example:
$args = array('number' => 2, 'paged' => 2)
will return the second page at 2 per page.
If you don’t have a query string set, you’ll get an error because it’s trying to show 2 users from a page that is undefined.
The solution is to leave out the ‘paged’ parameter and let it start on page 1 (the default).
My experience ends here with regard to how to implement pagination, but it looks as if it’s a function of the ‘offset’ parameter like:
'offset' => get_query_var($paged) * $number
(assuming the query var exists)
Related Posts:
- How to display pagination links for WP_User_Query?
- How to display next and prev pagination links with WP_User_Query?
- I want to change the media list with additionally query
- Authors list Pagination : result set from $wpdb->get_results()
- Can I use paginate_links() to add a pagination list, yet prevent it from inserting links?
- The paging is very slow under a large number of articles
- Pagination on WP_User_Query not updating current page
- WP_User_Query counter not updating with pagination
- WordPress /page/2 404 pagination problem – what to do?
- Paged posts – how to use numbers and next/previous links?
- how to get pagination link url?
- add_rewrite_rule – working fine but broken for pagination
- Check if on last page of paginated post using wp_link_pages
- How to paginate a list of tags
- How do I sort multiples pages?
- WordPress pagination on custom script
- Broken pagination
- wordpress Static Page pagination
- pagenavigation not showing the next page just linking back to the main page [closed]
- Paginate get related post by author function
- How to use pre_get_posts?
- Keep Pagination in Tabs
- Need help understanding pagination parameters
- redirect pages with no content, instead of 404 error, using max_num_posts?
- WordPress API returns empty page when page is less than X-WP-TotalPages
- Custom query in archive.php with pagination nightmare
- Display post links under month in paginated archive
- Pagination shows same contents all pages
- Pagination (page/2/) displaying 404 on archive pages
- How to use “offset” to paginate get_users?
- Limited number of paging to 10 “pages: 1 … 10”
- remove_query_arg() on rewrite rule
- Hide featured post on second page
- I cannot get pagination to work on my home page code. it keeps displaying the same posts
- How to get “last year from [spec year] that has posts”?
- Fetching more posts in WordPress via AJAX
- AJAX pagination offset returns same post on adjacent pages
- 404 on pagination but with a strange twist (error 404 only when there is single post on the second page)
- WordPress loading index page instead of archive.php
- How can I paginate a list of related posts?
- tag.php pagination and query_posts()
- Add additional first page, last page links to the_posts_pagination()
- How can I use var php with javascript to build custom page? [closed]
- pagination with numbers for WP_User_Query
- wp_title() returns ‘page not found’ on page 2
- Homepage has Paged Pages that should not exist, like /page/2/ and on to /page/99999/
- Randomised Post Time
- WordPress paginate_links() function doesn’t generate properly links after apply filters
- Not refreshing content pagination on search result
- rewrite url with parameter or pagination beyond certain value does not work
- stop pretty pagination rewrite site.com/cat/2 => site.com/cat?page=2
- How checked checkboxes remember on all pages in wp_list_table pagination?
- Update to 4.4.1 breaks my pagination
- Issue on single.php pagination WordPress
- Pagination on home page not working
- Adding range to wp_link_pages()
- Pagination 404s on custom query
- Pagination in home page for a custom loop loads same content
- Pagination not working with custom post type
- Displaying the author of next and previous posts in pagination?
- Pagination For Table Rows on a page?
- Custom pagination code is not working
- Pagination doesnt show numbers
- where is wordpress search pagination
- Universal CPT archive template and half working pagination
- How do I override all theme pagination throughout a site?
- Translating a pager string
- Pagination, query more pages at once
- WP Page Navi. 404 error when using posts per page parameter [duplicate]
- Paginate_links only working on first page
- What is the best way to implement ajax based pagination on custom query based templates?
- WordPress pagination with wp_query_columns
- Custom post type pagination like “previous current/all next”
- what code to add to search.php
- remove rel=next on category page (if
- GoBlog Free Pagination Issue
- Sidebar pagination posts not shown when sidebar is in single.php
- how to Adding pagination on template page wordpress
- Pagination with Metaboxes or Custom Fields
- Custom pagination search in post type with meta key
- How to add pagination to custom page
- Pagination: Last Page Missing
- posts_per_page stop working after wordpress update from 4.2.1 to 4.6.1
- Pagination reloads first page but has proper url
- Paginate Links function: Page 1 doesn’t work
- How to display most viewed posts without any plugins
- Search engine not working
- Pagination options using xml data instead of database?
- How to devide post into more than one page using ?
- pagination for blog landing page
- URL rewrite breaking pagination
- Blog Page pagination not working, loads Page 1 each time [duplicate]
- Pagination is not working correctly there is this wierd looping
- Media library only show 2 items per page?
- margins in between pagination links [closed]
- Page navigation not working correctly on index but only on categories
- How to split long posts in multiple pages in twentysixteen
- Duplicating pagination on second page
- I want the “next” and “previous” buttons to appear in my custom navigation function
- How to make infinite scroll by dividing the content?