title: Wordpress wp_insert_post doesn't work
body: <p>Here is my script, to let you know I use it inside my test file  </p>
  
  <pre><code>$my_post = array(
                  'post_title' =&gt; "post test",
                  'post_date' =&gt; current_time('mysql'),
                  'post_content' =&gt; 'This is my post.',
                  'post_status' =&gt; 'publish', 
                  'post_author'   =&gt; 1,
                  'post_category' =&gt; array(1)
  
              ); 
          $post_id= wp_insert_post($my_post);
          var_dump($post_id);
  </code></pre>