Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
h20gg702 opened this issue Jul 2, 2024 · 0 comments

Comments

@h20gg702
Copy link

h20gg702 commented Jul 2, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant