WP-API / docs

The content for developer.wordpress.org/rest-api
https://developer.wordpress.org/rest-api
110 stars 620 forks source link

Retrieving Deleted Scheduled Posts instead of post with Future status via WordPress REST API #184

Open h20gg702 opened 3 months ago

h20gg702 commented 3 months ago

I've been using a Python script to fetch and modify posting day of scheduled posts in WordPress via the REST API with the following URL:https://{domain}/wp-json/wp/v2/posts?per_page=100&post_status=future&post_type=post&orderby=date&order=asc This script worked perfectly until a few days ago. Recently, it started retrieving posts that I had previously deleted, and these posts did not appear in the trash nor are they listed under the future post status in the WordPress admin. But After using this script, this ghost post appears from somewhere...

Has anyone experienced a similar issue? How can I resolve this to ensure only valid, future posts are fetched normaly?