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
- Display current category title on category page
- Inject post (from specific category) between posts in Loop
- Does the REST API (official) support custom post types?
- Passing JSON data from WP Query into AJAX causing NULL errors
- Allow authors to post only in categories they create in WordPress
- List all categories but exclude current post category on single post page
- Ajax call to my WordPress website from an external application [duplicate]
- API JSON Data in WordPress
- fetch_feed: retrieve entries in the appearing order, not chronologically
- Edit category output
- Problems with function on function.php
- using woocommerce_template_single_add_to_cart in shop-loop – javascript issues [closed]
- Custom Loop through category menu to include sub categories
- Different background-image by category
- Why does running get_the_excerpt() when generating JSON file take 28 seconds vs. 599 milliseconds without it?
- Get posts with at least one category in common with current post?
- Woocommerce – remove product from category
- Get category name from custom loop and echo it once
- hover image appears below placeholder instead of overlayed
- get current product name in functions.php
- wp_remote_get adding backslashes
- Creating a Multi-Level Associative Object Using AJAX
- Filter Select results based on selection
- 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
- WP grandchild categories in nested ul li
- Pass Category Name, Description and Photo into variables to pass to jQuery
- How to pick the default selected value in wordpress dropdown?
- Get page that displays all children of taxonomy parent
- Hide subcategories (widget)
- database sent to a JSON file
- How to show only subcategories in parent category not parent category?
- Dilemma of Populating all the categories in a drop down list
- get taxonomy thumbnail and use it as a variable in code
- Buddypress update user avatar image via REST
- Get latest post from all categories except one
- How can I spin up a new website for a registered user automatically?
- Cant register rest routs from class instance
- In WordPress, how do I get the number of posts next to single_cat_title(”); in the category.php file?
- Only show size attributes in product box woocommerce when available
- Custom post type category not displaying category ID
- Argument for if term-> have child?
- How to get current post category details inside “loop”?
- Echoing a CSS class based on category of post in a list
- is user member of a group, show them categories [closed]
- Showing Subcategory Name/Link Instead of Parent Category
- WordPress custom taxonomy
- Finding and removing duplicates within WP Arrays
- Using multiple variables to assign categories to an array
- Compare current post Category in select menu
- Get the list of post categories
- Remove Custom Post Category In WordPress Slug Using .Htaccess
- Woocommerce. Get a list of products in the current category on the archive page and product page
- How to show categories and date on posts
- Add a “custom field” to a category that can be retrieved when viewing the category page with get_post_meta
- Allow two posts (from different categories) to have the same slug
- Get main parent category for post (WordPress/Advanced Custom Fields)
- Force REST API Authentication for each request method
- Category Page Displaying all Pages
- How to enable HTML tags in category description without breaking the category page
- REST API custom endpoint to fetch pages and posts not working
- Trying to show the category of a post in the post display
- Create category after theme setup and modify the default one
- Link to index.php from home.php?
- get Woocommerce product format json for WP_Query
- Issue with json decode in WordPress – value is not returning consistently
- Hide a specific category title from displaying on site
- Return to the beginning of the results of a for loop
- Populate Posts based on category selected using AJAX that means without page refresh
- random woocommerce categories are not showing when count enabled?
- Customizing the output of the archive and category widget without altering the original behavior of the widget
- How to Retrieve All Category Images on Front-End
- Can’t get_users info by using json_encode
- Code works on page-example.php by not category-example.php
- get_category display only 1
- WordPress using get_term to retreive slug not working as expected
- Front end post submissions do not get submitted in the category
- Make an array listing custom taxonomy
- Get category id for a custom category and display it in a class
- Is there a way to randomize and connect a background and header image?
- wp_get_archive for category returning different URLs on different but similar sites
- dynamically filter by category via sub-menu
- Get unique post in parent category
- Incomplete term slugs output from a foreach loop with get_the_terms
- Remove /category/ from category (archive) page URLs (without using a plugin)
- How to insert the first letter in uppercase [closed]
- JSON Object Value Show Undefine
- Properly process a custom WP REST API request (Authenticate, Authorize + Validate)?
- rest_cannot_create_user – Sorry, you are not allowed to create new users. CURL WORDPRESS REST API
- Query posts by custom taxonomy slug in WP REST API?
- oneOf JSON Schema validation not properly working for custom post meta value?