Here’s one way using the include
with a range from 100 to 200:
$user_query = new WP_User_Query( [ 'include' => range( 100,200 ) ] );
Related Posts:
- Get previously visited page ID
- ID for posts/blogs page
- Get ID of “root-page”
- Get the correct post id for all post and page in header.php
- ID of Front-Page
- Always Encounter Using ID in WordPress as a Final Solution [closed]
- Why does the page/post ID keep growing when i refresh the post-new.php file?
- How can I exclude a specific ID from this line of code?
- get page id’s – not get pages?
- get post by nav id
- Ad units Div-ids frequently changing
- Consequence of the post auto incrementer off?
- Subcategory IDs in relation to parent category ID switch case
- add anchor tags rel to thumbnails id
- get_pages gives wrong ID for blogpage
- Get page ID of page that is set as the posts page
- How to get current page ID outside the loop?
- how to get page id of a page using page slug
- get post author id outside loop
- How to get Author ID outside the loop
- Custom Walker: how to get ID in function start_lvl
- How to get page title with the page ID?
- how to get list of all users and their metadata
- How to search for (partial match) display names of WordPress users?
- How to get permalink and title from post ID?
- How do I get the current edit page ID in the admin?
- Echo author ID in author.php
- Get page IDs from nav items
- How to display pagination links for WP_User_Query?
- How to get home page ID?
- WP_User_Query to exclude users with no posts
- List users by last name in WP_User_Query
- Are post ID’s reliable?
- Get current post id in functions.php
- Query users by custom taxonomy and user role
- get all posts ID from a category
- How to obtain the user ID of the current profile being edited in WP-Admin?
- Single loop for wp_query and wp_user_query
- Creating a WordPress admin page without a menu for a plugin
- What is an alternative to get_page_by_title()?
- Settings API – creating reusable form elements?
- WP_User_Query will not combine meta + normal search methods
- Get the current post ID as a variable in Javascript
- How to search display_name column when using WP_User_Query
- Is post ID number always incremental n+
- Can’t get post ID in functions.php?
- WP_User_Query users by registered date
- How to order WP_User_Query results to match the order of an array of user IDs?
- Get page id by title?
- How to add the category ID to admin page
- Getting all user metadata from user
- User appears twice in a WP_User_Query
- Post ID At The End Of Permalink URL Effects Performance (Positively)?
- Searching users with WP_List_Table plugin
- Importing posts from old website to new conflicting post ID’s?
- WP User Query with search columns and meta query
- Want to add my custom prepare query but add_filter doesn’t run
- Wp_User_Query not sorting by meta key
- Get All IDs Of A Post Type Using WP_Query
- WP_User_Query with combined meta query – not working?
- How to add custom query filters in WP_User_Query
- pre_user_query meta_query admin user list
- Get user id from email?
- Check if WP_User_Query ‘include’ is empty
- How to change WordPress user ID?
- How to get page’s ID if I know the title only?
- What is the most efficient way to search users by their display name?
- Get Y random authors’ ID/Object with more than X number of posts
- Getting the ID of a meta box
- each_connected in wp_user_query with Scribu’s Posts to Posts Plugin – Alternative method? [closed]
- Searching user meta using WP_User_Query
- Is there an equivalent of the PHP function sanitize_key in Gutenberg?
- Are all ID’s used unique?
- get all page IDs from wp_list_pages
- $post->ID displays wrong ID
- WP CLI – show users whose ID is larger than given ID
- Add category to custom post type automatically, using category slug
- Sort WP_User_Query by meta_key value with pre_user_query
- How to display next and prev pagination links with WP_User_Query?
- At my posts archive page, outside the loop, get_the_id() returns the top most post’s ID
- WP_User_Query with meta_query array relation ‘OR’
- How to get any tag ID
- WP_User_Query Custom Field meta_query with Date clause
- How to get user by display_name with WP_User_Query
- get_post_meta fields don’t show up on posts page
- Possible to create a new post and have the Title and Slug automatically use the post’s ID?
- Ordering WP_User_Query results by the user IDs used in the include parameter
- Show ids of displayed media library items
- How do I display Youtube/Vimeo video ID on custom post type when user enters it in custom meta box?
- get_users / WP_User_Query returns empty when logged out
- Showing random content / pictures from earlier posts in a sticky post?
- How to get a list of all users registered before a given date?
- On Category page, How can I get the category ID?
- Get the post_id of a new post
- Get the comment author ID by the comment ID
- How to get ID of images used in gallery?
- get post id in while loops outputting page id
- Get users in query and limit user output to five in random order
- How can I display a specific user’s first published post?
- get the_title_attribute by id