Skip to content

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

Open
@h20gg702

Description

@h20gg702

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions