Support » Plugins » How does the timestamp change the post status?

  • I have an archive database of over 400 custom written articles, that I want to schedule post to my wordpress. I’ve written a script that auto inserts them into wordpress, ( 4 a day for 100 days ). However I’m missing a trick,as the ‘post_status’ field in the ‘wp_posts’ table remains at ‘future’ after the timestamp lapses. Does anyone know WHAT changes the ‘post_status’ over to ‘publish’? or can anyone explain how the wordpress cron system works? I’m so close yet so far.

    Many thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Well, there is the options field in the editor. If you are posting them all as drafts, there could be a problem.

    cron is the process changing the post_status. Best thing I can do is point you to better information:

    Otto is a guru on cron so check this search:
    and at least this thread:


    Thanks guys. Much appreciated. I can see now that wp-cron.php is the script that does the magic, but I’m still not any closer to finding out why its not for all my automatically inserted ‘fake’ posts. The only thing I can think of is that doing a ‘real’ post, sets some value in the cron field in the options table, and doing a ‘fake’ post misses this out. As far as I can see I’ve covered all bases with the data insertion. I insert stuff into posts table, term_relationships table, term_taxonomy, and wp_terms.

    I’m obviously missing a step here. Calling Otto!! Can you help? Is there any way of contacting Otto? 🙂


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How does the timestamp change the post status?’ is closed to new replies.