WordPress.org

Ready to get started?Download WordPress

Forums

How Can I change draft post to scheduled post with sql and php? (1 post)

  1. makinist99
    Member
    Posted 1 year ago #

    Hello Everyone,

    I want to change drafts posts to scheduled post.
    I changed post_status = 'future' and Post_date
    But on post date time post cannot publish. post_status is still 'future'
    and showing message = missed schedule

    ---I update with this query..
    UPDATE wp_posts SET post_date_gmt = '$futuredate', post_date = '$futuredate', post_status = 'future' WHERE id=".$row['ID'];

    Note: if I add a scheduled post with wordpress, There is no problem. On date time post is publishing.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.