Programmatic future post does not work
-
Hi dear community!
These days I encountered a problem.
I try to create a future post programmatically.wp_insert_post( array( ..., 'post_status' => 'future', 'post_date' => $date, /* format [ Y-m-d H:i:s ] */ ... ) );
Post is created as ‘scheduled’, but when time arrives to make post status public, it does not make it, and post remains scheduled.
What can be the problem?/ windows(8.1) / linux(ubuntu) / xampp / localhost /
Thanks in advance!
Greetings,
Andrew.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Programmatic future post does not work’ is closed to new replies.