Hello to all! Script add posts to wordpress'a database, in the field "post_status" I write the value "future", and in the field "post_date" and "post_date_gmt" - the date of publication. But when the publication date is reached, the status of the post does not change to "publish" and, accordingly, the post does not appear on the site :( Tell me how to be
post add code:
mysql_query ('INSERT INTO `wp_posts` (`post_author`, `post_date`, `post_date_gmt`, `post_content`, `post_title`, `post_status`, `comment_status`, `ping_status`, `post_name`, `post_type`) values ("1", "' . date('Ymd H:i:s', time() + 60) . '", "' . date('Ymd H:i:s', time() + 60 - 3600*3) . '", "text post", "post title", "future", "1", "open", "post-title", "post");');