Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Forum: Fixing WordPress
    In reply to: post_date question
    Thread Starter zeekapitein

    (@zeekapitein)

    Thnx I found a working code :p

    $pubdate =strtotime(‘2009-08-102009-08-31 12:17:25’);

    But when i use with :

    ‘date_created’=>$pubdate,
    ‘post_date’=>$pubdate,

    ‘post_modified’=>$pubdate,
    ‘post_modified_gmt’=>$pubdate,

    I go to my post and the timestamp automaticly changed the date to the current date…

    When i go to my database the date rows (date_created,…) are different from the ‘published on’ date in my blogpost…. So how do set the published date…

    Thnx for the help! Hope you understan my bad english :p

    greetings

    Forum: Fixing WordPress
    In reply to: post_date question
    Thread Starter zeekapitein

    (@zeekapitein)

    Hi thnx Joseph!

    But when i use :

    $pubdate =”2010-07-28 19:36:04″;

    then other code of my page :

    $content = array(
    ‘title’=>$title,
    ‘description’=>$body,
    ‘date_created_gmt’=>$pubdate,

    );

    It still doens’t work… Is it the wrong format in my variable ? I Now get the error :
    -32700 : parse error. not well formed

    Thnx for your help!

Viewing 2 replies - 1 through 2 (of 2 total)