I am working on a ticket submission system for my organization (and possibly a WP-theme) and would like to use the POST ID as the POST TITLE. Posts are posted from the front end based on a similar coding to http://voodoopress.com/2011/03/review-of-posting-from-front-end-form/ . I tried to set it using a variable, but I gets set to no title. See below:
$new_post = array(
'ticket_number' => $ticket_number,
$post->ID => $title,
'post_content' => $description,
'post_category' => array($_POST['cat']),
'location' => array($_POST['location']),
'emergency' => array($_POST['emergency']),
'problem_type' => array($_POST['problem_type']),
'tags_input' => array($tags),
'post_status' => 'publish', // Choose: publish, preview, future, draft, etc.
'post_type' => 'post', //'post',page' or use a custom post type if you want to
$emergency = $_POST['emergency'],
$location = $_POST['location'],
$problem_type = $_POST['problem_type'],
);