This is normal behaviour, you’ve not accounted for pagination. The REST API returns 10 results per page by default, and can be configured to return up to but no more than 100 per page.
You may be tempted to try -1
, but this will not work, 100 is the maximum results per page that can be requested for performance and scaling reasons.
WordPress provides 2 http headers indicating the total number of pages, and the total number of results across all pages so that you know how many requests are needed to fetch all results.
I strongly recommend reading the REST API handbook in the official documentation. This page covers how to use and control pagination, sorting, etc.
Related Posts:
- How to loop through JSON data in wordpress WP REST API
- Create a new user using WP REST API and declare meta object
- How Do I Add User Custom Field to REST API Response?
- How to show single category archive
- how to save selected option in variable for rest api category filter
- How to clone all WordPress Rest API end points
- Search in particular category in wordpress
- REST API custom endpoints for metaboxes
- What is an equivalent of single_cat_title for getting the slug of the category?
- Issue adding sub category programmatically
- How to exclude category ID from Looper in WordPress
- Add a specific part of current category page url to shortcode
- how do I get a specific post from a post with a subcategory in WP
- Woocommerce hook run after an Order been created through REST API
- what is the best practice to add new field to an api route
- Fetch post block/field data as JSON with WordPress API
- WP grandchild categories in nested ul li
- Grab posts by multiple categories
- Pass Category Name, Description and Photo into variables to pass to jQuery
- Move category description below post list in blog
- Woocommerce api: create product with images – bad request
- How to pick the default selected value in wordpress dropdown?
- Woocommerce: hook action/filter I could use to add variation id and price with each attribute opt on WooCommerce Rest api
- Applying A Category to Existing Posts Where Page Title Matches Regex
- Get page that displays all children of taxonomy parent
- Are nonces in WP REST API optional by default?
- selected option if current category is the value
- get_template_part based upon post’s category
- wp_enqueue_script seperately for each shortcode
- Setting default category base on theme activation
- Recent Posts Not Showing Only On A Specific Category Page [closed]
- Hide subcategories (widget)
- database sent to a JSON file
- Input data from email form not going to JSON file
- Alert Bar section within WP loop is displaying even though there are no posts
- Let Users Choose Post Categories
- Different post styles depending on category
- Display category name only once inside loop
- PHP > Scheduled Tasks > Sending daily email with dynamic API variables
- Fetching instagram api not working on wordpress
- How to show only subcategories in parent category not parent category?
- REST API: Display Category names in JSON?
- how to show only specific category for a template
- Dilemma of Populating all the categories in a drop down list
- Display most popular posts of category
- Creating sub-categories via php
- Define specific category name in PHP
- Edit the_category (); for a hierarchical display
- Category title output before opening title tag
- get taxonomy thumbnail and use it as a variable in code
- Include Parent Term in wp_list_categories
- Buddypress update user avatar image via REST
- How to array only one key from another array
- I’m trying to create an array with a foreach loop, but the array only stores the last item [closed]
- Delete taxonomy and delete all post related it
- Get all categories post is not in
- Get latest post from all categories except one
- Displaying posts based on category
- How do I remove a category from a wordpress loop>
- Get categories names as an array to use it in theme settings
- Building a REST API for your web app exposes primary keys of DB records?
- How to set a template with wp_insert_post
- Permission callback to check if user has application password
- Rewrite with pagination /foo/page/2/ to posts of a given category, page 2
- How to get the last category name of a child category?
- Multiple requests external data api dynamic block gutenberg
- How can I spin up a new website for a registered user automatically?
- Simple WordPress endpoint route doesn’t work
- Is it possible to create new user from external form using REST API?
- Cant register rest routs from class instance
- WordPress REST API register_rest_route give a 500 error
- In WordPress, how do I get the number of posts next to single_cat_title(”); in the category.php file?
- Use get() method to grab all categories and output inside another method
- WC_Customer delete function returns error
- Only show size attributes in product box woocommerce when available
- How to get category name or ID by post?
- Custom post type category not displaying category ID
- Argument for if term-> have child?
- How to get current post category details inside “loop”?
- Custom route and query
- Validate and Sanitize WP REST API Request using WP JSON Schema?
- How to separate categories with commas?
- How to hide posts of a specific custom category in WordPress?
- Show all tags within a category?
- Post not populating for custom post type based on category selection
- entire JS folder not loading in a WP theme
- Add new post in existing categories using wp_insert_post
- Filter by field with array value in ACF on WP REST API
- How to change logo by category
- Problem with custom loop and wp_list_pluck [closed]
- Listing titles and custom fields of entries within subcategories
- REST API works in browser and via AJAX but fails via cURL
- Retrieve Json data and create multiple pages with it
- random display categories – change url
- Displaying list of posts in category page
- Echoing a CSS class based on category of post in a list
- Alphabetically Ordered Category in WordPress
- Output category list inside array
- Do not duplicate posts with multiple categories in multiple loops
- Loading Posts & Category with Ajax