title: Contact form 7 to custom post type
body: <p>I would like to process a contact form from contact form 7 into a custom post type.</p>
  
  <p>Currently, this is what I have:</p>
  
  <pre><code>&lt;?php 
  
  if ( 'POST' == $_SERVER['REQUEST_METHOD'] &amp;&amp; !empty( $_POST['action'] ) &amp;&amp;        $_POST['action'] == "front_post") {
  
  //store our post vars into variables for later use
  //now would be a good time to run some basic error checking/validation
  //to ensure that data for these values have been set
  $title     = $_POST['title'];
  $content   = $_POST['content'];
  $Interest   = $_POST['Interest'];
  $post_type = 'purchase';
  
  
  //the array of arguements to be inserted with wp_insert_post
  $new_post = array(
  'post_title'    =&gt; $title,
  'post_content'  =&gt; $content,
  'tags_input'  =&gt; $tags,
  'posted_data' =&gt; $Interest,
  'post_status'   =&gt; 'publish',
  'post_category' =&gt; array('0',$_POST['cat']),          
  'post_type'     =&gt; $post_type 
  );
  
  //insert the the post into database by passing $new_post to wp_insert_post
  //store our post ID in a variable $pid
  //we now use $pid (post id) to help add out post meta data
  $pid=wp_insert_post($new_post);
  
  //we now use $pid (post id) to help add out post meta data
  add_post_meta($pid, 'cust_key', $custom_field);
  
  
  }
  ?&gt;
  </code></pre>
  
  <p>Here is a link to the actual form: <a href="http://stage.icardpromotions.com/create-purchase-order/" rel="noreferrer">http://stage.icardpromotions.com/create-purchase-order/</a></p>
  
  <p>I need to be able to pull in all of the info form this form into the custom post type "purchase"</p>
  
  <p>As you can see, I am currently pulling in the post_content, post_title, etc.  </p>
  
  <p>I have also tried to pull in content from content form by input name "Interest" but it dose not work.</p>
  
  <p>Does anyone have a clue how to do this?</p>