title: Wordpress: create category and description from the front end
body: <p>So I've got this mostly working - I can create a category from the front end with this...</p>
  
  <pre><code>&lt;?php 
  if(isset($_POST['submit'])){
  if(!empty($_REQUEST['newcat'])){
  $cat_ID = get_cat_ID( $_POST['newcat'] );    
  //If not create new category  
  if($cat_ID == 0) {  
  $cat_name = $_POST['newcat'];  
  
  $parenCatID = 0;
  $new_cat_ID = wp_create_category($cat_name,$parenCatID);  
  echo 'Category added successfully';
  }  
  
  else {echo 'That category already exists';}
  
  }
  }
  ?&gt;
  
  &lt;form action="" method="post"&gt;
  &lt;label for="newcat"&gt;Project Name&lt;/label&gt;
  &lt;input type="text" name="newcat" value="" /&gt;
  
  &lt;label for="description"&gt;Description&lt;/label&gt;
  &lt;input type="text" name="description" value="" /&gt;
  
  &lt;input type="submit" name="submit" value="Submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>...but I'm not sure how to modify the PHP so the description gets added as well.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks in advance.</p>