function press_it() {
// define some basic variables
$quick['post_status'] = 'draft'; // set as draft first
$quick['post_category'] = isset($_POST['post_category']) ? $_POST['post_category'] : null;
$quick['tax_input'] = isset($_POST['tax_input']) ? $_POST['tax_input'] : null;
$quick['post_title'] = ( trim($_POST['title']) != '' ) ? $_POST['title'] : ' ';
$quick['post_content'] = isset($_POST['post_content']) ? $_POST['post_content'] : '';
$linked_list_url = $_REQUEST['linked_list_url'];
// set the post_content and status
$quick['post_status'] = isset($_POST['publish']) ? 'publish' : 'draft';
$quick['post_content'] = $content;
// error handling for media_sideload
if ( is_wp_error($upload) ) {
wp_delete_post($post_ID);
wp_die($upload);
} else {
$quick['ID'] = $post_ID;
wp_update_post($quick);
add_post_meta($post_ID, 'linked_list_url', $linked_list_url, false);
}
<div id="quicktags"></div>
<div class="editor-container">
<textarea name="content" id="content" style="width:100%;" class="theEditor" rows="15"><?php
if ( $selection )
echo wp_richedit_pre($selection);
if ( $url ) {
echo '<p>';
if ( $selection )
_e('via ');
printf( "<a href='%s'>%s</a>.</p>", esc_url( $url ), esc_html( $title ) );
}
?></textarea>
<h3>My Link URL</h3>
<input name="linked_list_url" type="text" id="elink" class="mceEditor" style="width:100%;" value="<?php echo $url; ?>"/>
</div>