Wordpress Database help needed!

Discussion in 'WordPress' started by dcoops, Nov 21, 2007.

  1. #1
    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:

    So all times are set in the future, and the post_status is "future". Why is it not publishing when the time comes around?
     
    dcoops, Nov 21, 2007 IP
  2. freesecrets

    freesecrets Active Member

    Messages:
    83
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Why are you trying to do it via database?

    Just edit timestamp of the post and set it to whatever date you need and then hit publish. Post will become active on that date/time.

    I think there might be some additional references in DB created besides the table you are modifying to make that post active and by going through DB you are not touching it.

    Just write post as normal, edit Timestamp and set for future date, then publish. Mission accomplished.

    Alex
     
    freesecrets, Nov 22, 2007 IP
  3. a-humblekid

    a-humblekid Peon

    Messages:
    90
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    correct!
    just look at your right sidebar, you can change the datetime anytime. but beware, if your permalink has date on it, you will lose your old permalink.
    thanks
     
    a-humblekid, Nov 22, 2007 IP
  4. dcoops

    dcoops Guest

    Messages:
    218
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks guys!

    The problem is, I want to do it by database because I don't want to leave my blog for 2 months at 2 posts per day and have to log in and post 120 things manually!

    post2cat is the other table that has stuff, but that's not related to publishing :(
     
    dcoops, Nov 22, 2007 IP
  5. dcoops

    dcoops Guest

    Messages:
    218
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Does anyone have any other feedback on how I can do this without logging in every day and hitting "post"?
     
    dcoops, Nov 30, 2007 IP
  6. Megafu

    Megafu Peon

    Messages:
    133
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    same thing for me ... if you managed to find something pelase contact me . ;)
     
    Megafu, Dec 9, 2007 IP
  7. dcoops

    dcoops Guest

    Messages:
    218
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Nope, I gave up!
     
    dcoops, Dec 13, 2007 IP
  8. moodswing

    moodswing Peon

    Messages:
    188
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    let me do it.

    send me your database.


    regards,

    moodswing
     
    moodswing, Dec 13, 2007 IP