Post Timestamp in Future – Database Problems
-
Hi,
I’m trying to import some content into the wp_posts database, which works, but I can’t figure out how to make it automatically publish at a later date.
When I publish the imported content manually (eg. edit timestamp and hit publish) it works, but when I try and upload that into the database, it doesn’t seem to register.
I’m doing some traveling soon and I don’t want the blog to lay dormant! Here’s my SQL for an example post:
INSERT INTO
wp_posts(
ID,
post_author,
post_date,
post_date_gmt,
post_content,
post_title,
post_category,
post_excerpt,
post_status,
comment_status,
ping_status,
post_password,
post_name,
to_ping,
pinged,
post_modified,
post_modified_gmt,
post_content_filtered,
post_parent,
guid,
menu_order,
post_type,
post_mime_type,
comment_count`) VALUES
(123, 1, ‘2007-11-21 17:45:39’, ‘2007-11-21 23:31:15’, ‘I AM THE POST CONTENT’, ‘THIS IS THE POST TITLE’, 19, ”, ‘future’, ‘open’, ‘open’, ”, ‘this-is-the-post-slug’, ”, ”, ‘2007-12-01 17:45:39’, ‘2007-12-01 23:31:15’, ”, 0, ”, 0, ‘post’, ”, 0);`So all times are set in the future, and the post_status is “future”. Why is it not publishing when the time comes around?
- The topic ‘Post Timestamp in Future – Database Problems’ is closed to new replies.