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
- WP Rest API: details of latest post including featured media url in one request?
- Getting user meta data from WP REST API
- Increase per_page limit in REST API
- Create a new user using WP REST API and declare meta object
- Can’t send emails through REST API
- How to login to WordPress site using basic authentication HTTP headers?
- WP Rest API convert permalink to post ID for fetch
- How to filter users on custom meta fields in WP JSON v2?
- How can I return an image from a custom REST API endpoint?
- Check Password Strength using WordPress API
- Send request to WordPress REST API
- Request to REST endpoint works fine in browser and curl, but fails from WP_REST_Request
- WP REST api.wordpress.org discovery
- How can I cache WordPress Rest API Response
- Rest API in integration tests – filtering by slug not working?
- How do you format the set_body option for WP_Rest_Request?
- How to add / embed an author into REST data from a custom post type?
- How to enable the view of revisions of post in WordPress Api for custom post type?
- Problem on creating custom endpoints for REST
- Querying A Post That Includes Two Taxonomies Using JSON Rest API
- New user signup via REST API
- Ho to style post content for WordPress API?
- WP REST API can’t set post tags
- WP API post__not_in is not working
- REST API: Display Category names in JSON?
- Sidebar endpoint using WordPress API
- Get custom posts in gutenberg block
- Getting 401 (access denied) when trying to use the REST API
- How to clone all WordPress Rest API end points
- /wp-json/wp/v2/posts/?app=3 is returning random scripts tags
- User following system via REST API
- REST API – Allow /users endpoint depending on a custom capability
- 403 Error When Fetching Data from the Settings Rest Route for Non-Admin Users
- REST API post times out when content is too large
- Can I overwrite default WordPress Json API For no more pages text
- Secure WordPress API, how?
- How can I sort the results of a REST API response by the title of a connected custom post type?
- Create User with Profile and Cover Images using REST API
- Get html from custom route api
- Media gallery images url instead of ID on WP API
- Remove unwanted fields from WP API response
- WordPress and React how to integrate? [closed]
- Consult array data in REST API Filter
- WordPress Update Role using API Cross site
- Rest API. Post content
- Error rest_post_invalid_page_number trying to call Rest API
- Is it possible to combine two rest endpoints in the url?
- How to use WordPress rest API with Angularjs 4 [closed]
- Retrieve posts by page in wp rest api
- How to change WordPress api v2
- REST API Integration without user account?
- WP_REST_Request::get_json_params() Parsing null as Zero
- WP REST API with Basic Auth at target website
- API request forbidden when requesting from same domain
- Update post / page using API + python
- Calling a Rest API with parameters on button Click
- REST API custom endpoints for metaboxes
- Subscriber role cann’t add comment meta using REST API
- WordPress REST API function not calling from external site
- Issue with API after 6.2 update
- Verify user login and password over api