WordPress.org

Ready to get started?Download WordPress

Forums

How does the timestamp change the post status? (5 posts)

  1. pickledegg
    Member
    Posted 6 years ago #

    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.

  2. jemaverick
    Member
    Posted 6 years ago #

    Well, there is the options field in the editor. If you are posting them all as drafts, there could be a problem.

  3. MichaelH
    Member
    Posted 6 years ago #

    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:
    http://wordpress.org/search/otto42+cron?forums=1
    and at least this thread:
    http://wordpress.org/support/topic/119811?replies=19

    Also:
    [[Category:WP-Cron_Functions]]

  4. pickledegg
    Member
    Posted 6 years ago #

    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? :)

  5. pickledegg
    Member
    Posted 6 years ago #

    Boing!

Topic Closed

This topic has been closed to new replies.

About this Topic