title: Wordpress wp_insert_post function not working
body: <p>I have the following code in my root wordpress folder in a file called wp_insert_post.php
  However when I run this url from the browser I just get a blank page. None of the echo statements appear. What am I doing wrong?
  Thanks in advance!</p>
  
  <pre><code>&lt;?php
  require_once('wp-config.php');
  error_reporting(E_ALL);
  ini_set('display_errors',1);
  echo "done1";
  
  $post = array(
    'ID' =&gt; [] 
    'menu_order' =&gt; ['0'] 
    'page_template' =&gt; [] 
    'comment_status' =&gt; ['closed'] 
    'ping_status' =&gt; ['open']
    'pinged' =&gt; [] //?
    'post_author' =&gt; ['1'] 
    'post_category' =&gt; []
    'post_content' =&gt; ['testautopage123']
    'post_date' =&gt; ['2013-05-18 18:39:33'] 
    'post_date_gmt' =&gt; ['2013-05-18 18:39:33']
    'post_excerpt' =&gt; []
    'post_name' =&gt; ['test-auto-page']
    'post_parent' =&gt; [] 
    'post_password' =&gt; []
    'post_status' =&gt; ['publish']
    'post_title' =&gt; ['Test Page']
    'post_type' =&gt; ['page']
    'tags_input' =&gt; []
    'to_ping' =&gt; []); 
  echo "done2";
  // Insert the post into the database
  wp_insert_post($post);
  echo "done3";
  ?&gt;
  </code></pre>