Add orderby=include to your GET request.
See the docs here:
https://developer.wordpress.org/rest-api/reference/posts/#arguments
Related Posts:
- WordPress Rest API: How do we validate with our custom API key?
- authentication issue with rest api – rest_cannot_create
- wordpress wp-json prefix issue
- WordPress REST API “rest_authentication_errors” doesn’t work external queries?
- Can’t GET draft posts via REST API from headless frontend
- Formating content rendered from wordpress REST API as JSON and not HTML
- WordPress REST API – Modify JSON before importing
- Why does AWStats show /wp-json* as Viewed URLs
- WP Rest API – How to convert embedded to json object in Java [closed]
- featured image not found in json from wp rest api
- Custom endpoint to get all custom taxonomy terms
- WordPress JSON data to and from database to be shown on rest point
- How to Get Featured Image from REST API?
- If I use WordPress REST API V2 and someone makes an app using it. Will my site count the posts views from the APP? And if not, then how?
- How to connect android app with WordPress website?
- Custom WP API endpoint NULL body data
- Is there a way I can fetch the WordPress Developer Code References with an API?
- 403 error when publishing a post in wordpress. Error => Publishing failed. The response is not a valid JSON response
- Error message: Response is not a valid JSON response
- WordPress REST API not working on localhost
- DELETE request using WP REST API
- how to create JSON array [] for REST response?
- WP Rest API in Android studio does not show Images
- What’s the right way to validate JSON data coming from an AJAX POST request?
- How do i POST to WordPress rest API from the same domain?
- How to receive JSON payload from a digital device
- WP CLI in WP 5.3 with PHP 7.4
- Get wordpress post with featured image, category and tag from WordPress API
- WordPress API “code”:”rest_no_route” with Custom Route
- Autotrader API Integration
- REST API get featured image source for custom post type
- Fix Characters WordPress Ionic App
- Display Post Featured Image along with Categories via WP Rest API
- WordPress REST API not displaying all information
- WordPress Rest API Escapes Returned URLs Forward Slash
- Custom WP Rest API Endpoints from JSON Schema
- Custom rest api endpoint response json problem
- How can I set the default ‘orderby’ and ‘order’ parameters for a REST API call?
- WordPress json – How to use the content rendered from json
- How to get attributes from a post requested via the JSON API?
- How to call WordPress API Internally
- Transmit headers and footers via API from one site to another
- WordPress Rest Api search limited to 10 results
- Fetch All Posts (Including Those Using a Custom Post Type) With WordPress API
- How to use _embed when using _fields?
- Filter posts by multiple custom taxonomy terms using AND operator in REST API v2 (WordPress)
- WP REST API core major changes
- WordPress REST API – JSON “Rendered” Content Incorrect
- How to get all posts from parent and children categories?
- Attach featured image to custom endpoints
- WordPress: How to create custom REST API route?
- REST API URL parameters not working with apache server
- How to Pull ALL Posts, Categories, or Tags in WordPress REST API
- Get all post media images via WP REST API
- Query the REST API for a Tag by slug
- Rest API Custom Endpoint with space character
- apiFetch security
- Application Password is not enable by default?
- Cannot get ‘sanitize_callback’ to work for rest parameters
- How to use current_user_can() in register_rest_route()?
- WP REST API GET Requests require authentication
- What’s the “?P” register rest api construct, what is for and where to find official docs?
- WordPress REST API not returning all posts
- Cannot DIsplay a Snackbar Notice on Button Click – Notice is undefined
- Custom Post Type and Custom REST API Endpoint result in Gutenberg editor not working
- rest_sanitize_value_from_schema doesn’t sanitize string
- Erratic OAuth 1.0 Signature Mismatch Errors
- WordPress Rest API custom endpoint for RSS feed
- How to add a custom REST field to limit data when fetching?
- “No Access-Control-Allow-Origin header is present” even though it is in the entry file
- REST API authentication for a plugin
- How do I query posts by a sub value with the API?
- rest api request including meta_query filter
- Validate rest-api call on create
- WordPress REST API rest_comment_invalid_author Sorry, you are not allowed to edit ‘author’ for comments
- How to delete user using rest api without reassigning
- Accessing private posts through REST API, same code that works in remote doesn’t in local
- Rest API: trouble receiving response through script (browser and Postman display correctly)
- Advanced Access Manager: RESTful endpoint to refresh token
- Extending REST API responses
- Retrieve Data from Custom Endpoint
- Pass multiple tags slug to rest API
- Return a WP_REST_Response from an inner function (and not from the root callback)
- register_rest_route with method POST but in wp-json/ is showing GET
- Rest Api fetching only one random post
- Accessing Custom REST endpoint with rest_do_request()
- REST API and Loopback error
- Rest API: Register and Login errors aren’t specific
- Access featured image URL based on media ID?
- how can I add an URL parameter to a rest route using register_rest_route()?
- Is it possible to bulk update a table using WP Rest API?
- Call to undefined function upload_is_user_over_quota()
- Is my WordPress site handing out sensitive information/misconfigured?
- Delete row from table using custom endpoint via API
- Fetch post by author slug
- Cant POST with REST API on WordPress
- get the current logged in user using WooCommerce API in React App [closed]
- Problem with custom WordPress Rest API search route with query parameters
- WordPress – Contact Form 7 – Get uploaded file issue
- WordPress just for Backend